mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
Merge pull request #347 from Arthur-Milchior/onSortChangedUseBool
Ensuring value of sortBackwards is a Boolean
This commit is contained in:
commit
6f28b285d5
1 changed files with 1 additions and 0 deletions
|
@ -701,6 +701,7 @@ class Browser(QMainWindow):
|
||||||
hh.sectionMoved.connect(self.onColumnMoved)
|
hh.sectionMoved.connect(self.onColumnMoved)
|
||||||
|
|
||||||
def onSortChanged(self, idx, ord):
|
def onSortChanged(self, idx, ord):
|
||||||
|
ord = bool(ord)
|
||||||
self.editor.saveNow(lambda: self._onSortChanged(idx, ord))
|
self.editor.saveNow(lambda: self._onSortChanged(idx, ord))
|
||||||
|
|
||||||
def _onSortChanged(self, idx, ord):
|
def _onSortChanged(self, idx, ord):
|
||||||
|
|
Loading…
Reference in a new issue