mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 17:24:20 +02:00
...
This commit is contained in:
parent
4b89e0e6a1
commit
87d007b307
1 changed files with 2 additions and 2 deletions
|
|
@ -992,12 +992,12 @@ def mouseReleaseEvent(self, ev):
|
|||
if ev.button() == Qt.RightButton:
|
||||
tab_name = {'book':'book_details', 'grid':'cover_grid', 'cover_flow':'cover_browser', 'tags':'tag_browser'}.get(self.icname)
|
||||
if tab_name:
|
||||
ev.accept()
|
||||
from calibre.gui2.ui import get_gui
|
||||
gui = get_gui()
|
||||
if gui is not None:
|
||||
gui.iactions['Preferences'].do_config(initial_plugin=('Interface', 'Look & Feel', tab_name+'_tab'), close_after_initial=True)
|
||||
return
|
||||
ev.accept()
|
||||
return
|
||||
return QToolButton.mouseReleaseEvent(self, ev)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue