Don't make download items selectable

This commit is contained in:
Florian Bruhin 2014-06-13 17:47:03 +02:00
parent 3e5e8e59c1
commit a5f71a286d

View File

@ -84,6 +84,12 @@ class DownloadModel(QAbstractListModel):
data = QVariant()
return data
def flags(self, index):
"""Override flags so items aren't selectable.
The default would be Qt.ItemIsEnabled | Qt.ItemIsSelectable."""
return Qt.ItemIsEnabled
def rowCount(self, parent):
"""Get count of active downloads."""
if parent.isValid():