planetfederal / qgis-geogig-plugin

A plugin to manage and use GeoGig repositories from QGIS
GNU General Public License v2.0
9 stars 8 forks source link

Deprecated API used: setIdEditWidget #10

Closed luipir closed 8 years ago

luipir commented 8 years ago

message log by qgis 2.8.3

src/core/qgsmessagelog.cpp: 45: (logMessage) [1ms] 2015-12-14T12:36:51 Python warning[1] warning:/home/ginetto/.qgis2/python/plugins/geogig/tools/layers.py:59: DeprecationWarning: QgsVectorLayer.setEditType() is deprecated layer.setEditType(idx, QgsVectorLayer.UuidGenerator)

traceback: File "/home/ginetto/.qgis2/python/plugins/geogig/plugin.py", line 73, in addActions[layer].triggered.connect(lambda: addLayer(layer)) File "/home/ginetto/.qgis2/python/plugins/geogig/plugin.py", line 96, in addLayer dlg.exec_() File "/home/ginetto/.qgis2/python/plugins/geogig/gui/dialogs/importdialog.py", line 95, in importClicked addIdField(self.layer) File "/home/ginetto/.qgis2/python/plugins/geogig/tools/layers.py", line 75, in addIdField setIdEditWidget(layer)

volaya commented 8 years ago

If I remember right, that new way of setting it didn't work of made QGIS crash...so it was reverted to the deprecated method