mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
rely on setVar() to check if modified
This commit is contained in:
parent
c84f97c33c
commit
763758d43f
1 changed files with 1 additions and 2 deletions
|
@ -416,8 +416,7 @@ class EditDeck(QMainWindow):
|
|||
self.sortKey = ("field", self.sortFields[idx-9])
|
||||
self.rebuildSortIndex(self.sortKey)
|
||||
self.sortIndex = idx
|
||||
if self.deck.getInt('sortIndex') != idx:
|
||||
self.deck.setVar('sortIndex', idx)
|
||||
self.deck.setVar('sortIndex', idx)
|
||||
self.model.sortKey = self.sortKey
|
||||
self.model.updateHeader()
|
||||
if refresh:
|
||||
|
|
Loading…
Reference in a new issue