mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 15:03:36 +02:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
5b6482c3c9
1 changed files with 14 additions and 4 deletions
|
|
@ -546,10 +546,20 @@ def return_pressed(self):
|
|||
def book_doubleclicked(self, row, column):
|
||||
if self.no_valid_items:
|
||||
return
|
||||
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))
|
||||
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…
Reference in a new issue