Merge pull request #347 from Arthur-Milchior/onSortChangedUseBool

Ensuring value of sortBackwards is a Boolean
This commit is contained in:
Damien Elmes 2019-10-29 12:56:39 +10:00 committed by GitHub
commit 6f28b285d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -701,6 +701,7 @@ class Browser(QMainWindow):
hh.sectionMoved.connect(self.onColumnMoved)
def onSortChanged(self, idx, ord):
ord = bool(ord)
self.editor.saveNow(lambda: self._onSortChanged(idx, ord))
def _onSortChanged(self, idx, ord):