Fix return value of PluginsTableModel.getData

This commit is contained in:
David Vierra 2016-05-21 09:38:53 -10:00
parent c276d93aee
commit ad1e2ac85e

View File

@ -70,7 +70,7 @@ class PluginsTableModel(QtCore.QAbstractTableModel):
row = index.row() row = index.row()
if row >= len(self.pluginRefs): if row >= len(self.pluginRefs):
return None return False
value = value == Qt.Checked value = value == Qt.Checked
@ -85,8 +85,8 @@ class PluginsTableModel(QtCore.QAbstractTableModel):
if not pluginRef.unload(): if not pluginRef.unload():
showErrorDialog("%s while unloading plugin \"%s\"" % (pluginRef.unloadError[0].__name__, pluginRef.displayName), pluginRef.unloadError, False) showErrorDialog("%s while unloading plugin \"%s\"" % (pluginRef.unloadError[0].__name__, pluginRef.displayName), pluginRef.unloadError, False)
self.dataChanged.emit(index, index) self.dataChanged.emit(index, index)
return True
def flags(self, index): def flags(self, index):
column = index.column() column = index.column()