Don't require parent argument for rowCount in DownloadModel.
This commit is contained in:
parent
47c1908da2
commit
ba1f8e3764
@ -90,7 +90,7 @@ class DownloadModel(QAbstractListModel):
|
||||
The default would be Qt.ItemIsEnabled | Qt.ItemIsSelectable."""
|
||||
return Qt.ItemIsEnabled
|
||||
|
||||
def rowCount(self, parent):
|
||||
def rowCount(self, parent=QModelIndex()):
|
||||
"""Get count of active downloads."""
|
||||
if parent.isValid():
|
||||
# We don't have children
|
||||
|
Loading…
Reference in New Issue
Block a user