mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 12:24:00 +02:00
Bug #1920592: Category editor: Searching in library shouldn't automatically opens Quickview
This commit is contained in:
parent
9765f4a81f
commit
222cbf5e0d
2 changed files with 5 additions and 4 deletions
|
|
@ -164,12 +164,13 @@ def refresh_quickview(self, idx):
|
|||
if self.current_instance and not self.current_instance.is_closed:
|
||||
self.current_instance.refresh(idx)
|
||||
|
||||
def change_quickview_column(self, idx):
|
||||
def change_quickview_column(self, idx, show=True):
|
||||
'''
|
||||
Called from the column header context menu to change the QV query column
|
||||
'''
|
||||
self.focus_quickview()
|
||||
self.current_instance.slave(idx)
|
||||
if show or (self.current_instance and not self.current_instance.is_closed):
|
||||
self.focus_quickview()
|
||||
self.current_instance.slave(idx)
|
||||
|
||||
def library_changed(self, db):
|
||||
'''
|
||||
|
|
|
|||
|
|
@ -330,7 +330,7 @@ def search_for_books(self, item):
|
|||
current_row = rows[0].row()
|
||||
current_col = view.column_map.index(self.category)
|
||||
index = view.model().index(current_row, current_col)
|
||||
qv.change_quickview_column(index)
|
||||
qv.change_quickview_column(index, show=False)
|
||||
|
||||
def copy_to_clipboard(self, item):
|
||||
cb = QApplication.clipboard()
|
||||
|
|
|
|||
Loading…
Reference in a new issue