mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 04:43:58 +02:00
Enhancement #1869550: make QuickView work when using the grid layout.
This commit is contained in:
parent
d7a42176e8
commit
6c39a05af1
1 changed files with 5 additions and 1 deletions
|
|
@ -425,7 +425,11 @@ def refresh(self, idx):
|
|||
|
||||
try:
|
||||
bv_row = idx.row()
|
||||
self.current_column = idx.column()
|
||||
from calibre.gui2.ui import get_gui
|
||||
view = get_gui().library_view.alternate_views.current_view.__class__.__name__
|
||||
self.current_column = (
|
||||
self.view.column_map.index('authors') if view == 'GridView'
|
||||
else idx.column())
|
||||
key = self.view.column_map[self.current_column]
|
||||
book_id = self.view.model().id(bv_row)
|
||||
if self.current_book_id == book_id and self.current_key == key:
|
||||
|
|
|
|||
Loading…
Reference in a new issue