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,12 +164,13 @@ class ShowQuickviewAction(InterfaceAction):
|
|||||||
if self.current_instance and not self.current_instance.is_closed:
|
if self.current_instance and not self.current_instance.is_closed:
|
||||||
self.current_instance.refresh(idx)
|
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
|
Called from the column header context menu to change the QV query column
|
||||||
'''
|
'''
|
||||||
self.focus_quickview()
|
if show or (self.current_instance and not self.current_instance.is_closed):
|
||||||
self.current_instance.slave(idx)
|
self.focus_quickview()
|
||||||
|
self.current_instance.slave(idx)
|
||||||
|
|
||||||
def library_changed(self, db):
|
def library_changed(self, db):
|
||||||
'''
|
'''
|
||||||
|
@ -330,7 +330,7 @@ class TagListEditor(QDialog, Ui_TagListEditor):
|
|||||||
current_row = rows[0].row()
|
current_row = rows[0].row()
|
||||||
current_col = view.column_map.index(self.category)
|
current_col = view.column_map.index(self.category)
|
||||||
index = view.model().index(current_row, current_col)
|
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):
|
def copy_to_clipboard(self, item):
|
||||||
cb = QApplication.clipboard()
|
cb = QApplication.clipboard()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user