planetfederal / qgis-geogiglight-plugin

GNU General Public License v2.0
19 stars 9 forks source link

Python error when "change to a different version..." if a tag is a number #45

Closed gioman closed 8 years ago

gioman commented 8 years ago

Add a tag that is a number (ex 123), then try "change to a different version..."

TypeError: arguments did not match any overloaded call:   QComboBox.addItem(QString, QVariant userData=QVariant()): argument 1 has unexpected type 'int'   QComboBox.addItem(QIcon, QString, QVariant userData=QVariant()): argument 1 has unexpected type 'int' 
Traceback (most recent call last):
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\layeractions.py", line 175, in changeVersion
    dlg = RefDialog(repo)
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\gui\dialogs\geogigref.py", line 145, in __init__
    self.initGui()
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\gui\dialogs\geogigref.py", line 151, in initGui
    self.refwidget = RefWidget(self.repo)
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\gui\dialogs\geogigref.py", line 41, in __init__
    self.initGui()
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\gui\dialogs\geogigref.py", line 76, in initGui
    self.comboTag.addItem(tag)
TypeError: arguments did not match any overloaded call:
  QComboBox.addItem(QString, QVariant userData=QVariant()): argument 1 has unexpected type 'int'
  QComboBox.addItem(QIcon, QString, QVariant userData=QVariant()): argument 1 has unexpected type 'int'

remove the tag and no more error.