diff options
-rw-r--r-- | src/gui/widgets/qmenu_mac.mm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/qmenu_mac.mm b/src/gui/widgets/qmenu_mac.mm index 37755f1..a70c287 100644 --- a/src/gui/widgets/qmenu_mac.mm +++ b/src/gui/widgets/qmenu_mac.mm @@ -1433,6 +1433,7 @@ QMenuPrivate::QMacMenuPrivate::syncAction(QMacMenuAction *action) } else { [item setSubmenu:subMenu]; } + [item setAction:nil]; #endif } else { //respect some other items #ifndef QT_MAC_USE_COCOA @@ -1447,6 +1448,8 @@ QMenuPrivate::QMacMenuPrivate::syncAction(QMacMenuAction *action) } #else [item setSubmenu:0]; + if ([item action] == nil) + [item setAction:@selector(qtDispatcherToQAction:)]; // No key equivalent set for multiple key QKeySequence. if (accel.count() == 1) { [item setKeyEquivalent:keySequenceToKeyEqivalent(accel)]; |