mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 03:53:24 +02:00
Ensure that QActions that are added to the menubar from plugins are not re-interpreted as application menu actions by Qt
This commit is contained in:
parent
a551136f5b
commit
4ff358675c
1 changed files with 1 additions and 0 deletions
|
|
@ -219,6 +219,7 @@ class CloneAction(QAction):
|
|||
|
||||
def __init__(self, clone, parent, is_top_level=False, clone_shortcuts=True):
|
||||
QAction.__init__(self, clone.text(), parent)
|
||||
self.setMenuRole(QAction.NoRole) # ensure this action is not moved around by Qt
|
||||
self.is_top_level = is_top_level
|
||||
self.clone_shortcuts = clone_shortcuts
|
||||
self.clone = clone
|
||||
|
|
|
|||
Loading…
Reference in a new issue