mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 06:37:17 +00:00
Converted dupeguru to the new automated QVariant conversion protocol introduced in PyQt (which is the default protocol when running under python 3).
This commit is contained in:
@@ -52,11 +52,10 @@ class ResultsModel(Table):
|
||||
def _setData(self, row, column, value, role):
|
||||
if role == Qt.CheckStateRole:
|
||||
if column.name == 'name':
|
||||
self.model.app.mark_dupe(row._dupe, value.toBool())
|
||||
self.model.app.mark_dupe(row._dupe, bool(value))
|
||||
return True
|
||||
elif role == Qt.EditRole:
|
||||
if column.name == 'name':
|
||||
value = value.toString()
|
||||
return self.model.rename_selected(value)
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user