mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Bug #1920592: Category editor: Searching in library shouldn't automatically opens Quickview
This commit is contained in:
parent
9765f4a81f
commit
222cbf5e0d
@ -164,10 +164,11 @@ class ShowQuickviewAction(InterfaceAction):
|
||||
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
|
||||
'''
|
||||
if show or (self.current_instance and not self.current_instance.is_closed):
|
||||
self.focus_quickview()
|
||||
self.current_instance.slave(idx)
|
||||
|
||||
|
@ -330,7 +330,7 @@ class TagListEditor(QDialog, Ui_TagListEditor):
|
||||
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…
x
Reference in New Issue
Block a user