mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-05-13 12:09:49 +00:00
qtlib: Fix broken SelectableList
It was still using `.reset()`, which disappeared in Qt5. Fixes #254.
This commit is contained in:
parent
8434befe1f
commit
9e9e73aa6b
@ -41,7 +41,8 @@ class SelectableList(QAbstractListModel):
|
|||||||
#--- model --> view
|
#--- model --> view
|
||||||
def refresh(self):
|
def refresh(self):
|
||||||
self._updating = True
|
self._updating = True
|
||||||
self.reset()
|
self.beginResetModel()
|
||||||
|
self.endResetModel()
|
||||||
self._updating = False
|
self._updating = False
|
||||||
self._restoreSelection()
|
self._restoreSelection()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user