1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2025-05-11 19:19:49 +00:00

qtlib: Fix broken SelectableList

It was still using `.reset()`, which disappeared in Qt5.

Fixes #254.
This commit is contained in:
Virgil Dupras 2014-07-01 08:30:56 -04:00
parent 8434befe1f
commit 9e9e73aa6b

View File

@ -41,7 +41,8 @@ class SelectableList(QAbstractListModel):
#--- model --> view
def refresh(self):
self._updating = True
self.reset()
self.beginResetModel()
self.endResetModel()
self._updating = False
self._restoreSelection()