mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix right clicking on column headers in device view broken
This commit is contained in:
parent
aa8969fde6
commit
607f864d8c
@ -966,6 +966,7 @@ class DeviceBooksModel(BooksModel): # {{{
|
||||
return len(self.map)
|
||||
|
||||
def set_database(self, db):
|
||||
self.custom_columns = {}
|
||||
self.db = db
|
||||
self.map = list(range(0, len(db)))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user