Commit 49293c36 authored by Dan Pascu's avatar Dan Pascu

Fixed and simplified model flag retrieval

parent 82451248
......@@ -327,8 +327,8 @@ class ContactModel(QAbstractListModel):
def flags(self, index):
if not index.isValid():
return Qt.ItemIsEnabled
return Qt.ItemFlags(QAbstractListModel.flags(self, index) | Qt.ItemIsEditable)
return QAbstractListModel.flags(self, index)
return QAbstractListModel.flags(self, index) | Qt.ItemIsEditable
def rowCount(self, parent=QModelIndex()):
return len(self.items)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment