mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Correct regression in device handing -- sorting after sending a book.
This commit is contained in:
parent
8b09f4c293
commit
5626418d1a
@ -1024,6 +1024,11 @@ class DeviceBooksModel(BooksModel): # {{{
|
|||||||
if reset:
|
if reset:
|
||||||
self.reset()
|
self.reset()
|
||||||
|
|
||||||
|
def resort(self, reset=True):
|
||||||
|
if self.sorted_on:
|
||||||
|
self.sort(self.column_map.index(self.sorted_on[0]),
|
||||||
|
self.sorted_on[1], reset=reset)
|
||||||
|
|
||||||
def columnCount(self, parent):
|
def columnCount(self, parent):
|
||||||
if parent and parent.isValid():
|
if parent and parent.isValid():
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user