mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
5b6482c3c9
@ -546,10 +546,20 @@ class Quickview(QDialog, Ui_Quickview):
|
||||
def book_doubleclicked(self, row, column):
|
||||
if self.no_valid_items:
|
||||
return
|
||||
try:
|
||||
if gprefs['qv_dclick_changes_column']:
|
||||
self.select_book(row, column)
|
||||
else:
|
||||
self.select_book(row, self.key_to_table_widget_column(self.current_key))
|
||||
except:
|
||||
from calibre.gui2 import error_dialog
|
||||
error_dialog(self, _('Quickview: Book not in library view'),
|
||||
_('The book you selected is not currently displayed in '
|
||||
'the library view, perhaps because of a search, so '
|
||||
'Quickview cannot select it.'),
|
||||
show=True,
|
||||
show_copy_button=False)
|
||||
|
||||
|
||||
def select_book(self, row, column):
|
||||
'''
|
||||
|
Loading…
x
Reference in New Issue
Block a user