This commit is contained in:
Kovid Goyal 2015-04-27 09:53:40 +05:30
parent 4fc0f08da8
commit 1ee5f3aba9

View File

@ -264,7 +264,7 @@ if isosx:
visibility_changed = pyqtSignal() visibility_changed = pyqtSignal()
def __init__(self, clone, parent, is_top_level=False, clone_shortcuts=True): def __init__(self, clone, parent, is_top_level=False, clone_shortcuts=True):
QAction.__init__(self, clone.text(), parent) QAction.__init__(self, clone.text().replace('&&', '&'), parent)
self.setMenuRole(QAction.NoRole) # ensure this action is not moved around by Qt self.setMenuRole(QAction.NoRole) # ensure this action is not moved around by Qt
self.is_top_level = is_top_level self.is_top_level = is_top_level
self.clone_shortcuts = clone_shortcuts self.clone_shortcuts = clone_shortcuts