mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Viewer: Fix incorrect positioning of context menu for viewer toolbar. Fixes #1898577 [Right-clicking on toolbar - menu appears in corner of desktop](https://bugs.launchpad.net/calibre/+bug/1898577)
This commit is contained in:
parent
56a9b9529a
commit
4ff8481b83
@ -120,7 +120,7 @@ class ActionsToolBar(ToolBar):
|
|||||||
a.triggered.connect(self.customize)
|
a.triggered.connect(self.customize)
|
||||||
a = m.addAction(_('Hide this toolbar'))
|
a = m.addAction(_('Hide this toolbar'))
|
||||||
a.triggered.connect(self.hide_toolbar)
|
a.triggered.connect(self.hide_toolbar)
|
||||||
m.exec_(pos)
|
m.exec_(self.mapToGlobal(pos))
|
||||||
|
|
||||||
def hide_toolbar(self):
|
def hide_toolbar(self):
|
||||||
self.web_view.trigger_shortcut('toggle_toolbar')
|
self.web_view.trigger_shortcut('toggle_toolbar')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user