mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
cd0a7f740d
@ -1237,9 +1237,7 @@ class BooksView(TableView): # {{{
|
||||
@property
|
||||
def visible_columns(self):
|
||||
h = self.horizontalHeader()
|
||||
logical_indices = (x for x in range(h.count()) if not h.isSectionHidden(x))
|
||||
rmap = dict(enumerate(self.column_map))
|
||||
return (rmap[h.visualIndex(x)] for x in logical_indices if h.visualIndex(x) > -1)
|
||||
return (key for lidx,key in enumerate(self.column_map) if not h.isSectionHidden(lidx))
|
||||
|
||||
def refresh_book_details(self, force=False):
|
||||
idx = self.currentIndex()
|
||||
|
Loading…
x
Reference in New Issue
Block a user