mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-03-20 06:11:39 +00:00
Fixed renaming under Qt which was broken since the addition of the 'marked' column.
This commit is contained in:
@@ -46,9 +46,10 @@ class ResultsModel(Table):
|
||||
def _getFlags(self, row, column):
|
||||
flags = Qt.ItemIsEnabled | Qt.ItemIsSelectable
|
||||
if column.name == 'marked':
|
||||
flags |= Qt.ItemIsEditable
|
||||
if row.markable:
|
||||
flags |= Qt.ItemIsUserCheckable
|
||||
elif column.name == 'name':
|
||||
flags |= Qt.ItemIsEditable
|
||||
return flags
|
||||
|
||||
def _setData(self, row, column, value, role):
|
||||
|
||||
Reference in New Issue
Block a user