mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
commit
ceab27ab7a
@ -1027,7 +1027,9 @@ class DeviceBooksModel(BooksModel): # {{{
|
|||||||
def resort(self, reset=True):
|
def resort(self, reset=True):
|
||||||
if self.sorted_on:
|
if self.sorted_on:
|
||||||
self.sort(self.column_map.index(self.sorted_on[0]),
|
self.sort(self.column_map.index(self.sorted_on[0]),
|
||||||
self.sorted_on[1], reset=reset)
|
self.sorted_on[1], reset=False)
|
||||||
|
if reset:
|
||||||
|
self.reset()
|
||||||
|
|
||||||
def columnCount(self, parent):
|
def columnCount(self, parent):
|
||||||
if parent and parent.isValid():
|
if parent and parent.isValid():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user