This commit is contained in:
Kovid Goyal 2017-07-27 08:38:07 +05:30
commit 5b6482c3c9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -546,10 +546,20 @@ class Quickview(QDialog, Ui_Quickview):
def book_doubleclicked(self, row, column): def book_doubleclicked(self, row, column):
if self.no_valid_items: if self.no_valid_items:
return return
if gprefs['qv_dclick_changes_column']: try:
self.select_book(row, column) if gprefs['qv_dclick_changes_column']:
else: self.select_book(row, column)
self.select_book(row, self.key_to_table_widget_column(self.current_key)) 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): def select_book(self, row, column):
''' '''