Skip to content

Commit 1ed401b

Browse files
authored
remove old workaround for shortcuts now causing issues
Old issue seems to be fixed in Qt 5.15 LTS and Qt 6. Old workaround causes error "QAction::event: Ambiguous shortcut overload" now in latest Qt versions, at least when creating shortcuts for actions like "tool selection".
1 parent 3d200f7 commit 1ed401b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pyzo/core/menu.py

-3
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,6 @@ def setShortcut(self, action):
236236
# Set shortcut so Qt can do its magic
237237
shortcuts = pyzo.config.shortcuts2[action.menuPath]
238238
action.setShortcuts(shortcuts.split(","))
239-
pyzo.main.addAction(
240-
action
241-
) # issue #470, http://stackoverflow.com/questions/23916623
242239
# Also store shortcut text (used in display of tooltip
243240
shortcuts = shortcuts.replace(",", ", ").replace(" ", " ")
244241
action._shortcutsText = shortcuts.rstrip(", ")

0 commit comments

Comments
 (0)