Bug #1920592: Category editor: Searching in library shouldn't automatically opens Quickview

This commit is contained in:
Charles Haley 2021-03-20 13:54:26 +00:00
parent 9765f4a81f
commit 222cbf5e0d
2 changed files with 5 additions and 4 deletions

View File

@ -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)

View File

@ -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()