diff options
author | Andy Shaw <andy.shaw@nokia.com> | 2010-10-07 10:36:30 (GMT) |
---|---|---|
committer | Andy Shaw <andy.shaw@nokia.com> | 2010-10-07 10:36:30 (GMT) |
commit | 3fddf68f376fe06d0af3f390a94ed84cc1a3fa38 (patch) | |
tree | e8ad4d744f03f1b94375625832216bd9e421c3bb | |
parent | 62a2fe9092d3b6038a08f5c5a7faa4a863b84fdc (diff) | |
download | Qt-3fddf68f376fe06d0af3f390a94ed84cc1a3fa38.zip Qt-3fddf68f376fe06d0af3f390a94ed84cc1a3fa38.tar.gz Qt-3fddf68f376fe06d0af3f390a94ed84cc1a3fa38.tar.bz2 |
Ensure that actions are still fired even if there is no visible window
On Mac, if there is no visible window then actions can still be fired
from the menubar as the menubar can still be accessed and used. This
ensures that the actions are still triggered in this circumstance.
Task-number: QTBUG-13941
Reviewed-by: Richard Moe Gustavsen
-rw-r--r-- | src/gui/kernel/qcocoaapplicationdelegate_mac.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qcocoaapplicationdelegate_mac.mm b/src/gui/kernel/qcocoaapplicationdelegate_mac.mm index 7a9dc70..9b07d64 100644 --- a/src/gui/kernel/qcocoaapplicationdelegate_mac.mm +++ b/src/gui/kernel/qcocoaapplicationdelegate_mac.mm @@ -320,5 +320,10 @@ static void cleanupCocoaApplicationDelegate() [NSApp terminate:self]; } +- (void)qtDispatcherToQAction:(id)sender +{ + [[NSApp QT_MANGLE_NAMESPACE(qt_qcocoamenuLoader)] qtDispatcherToQAction:sender]; +} + @end #endif |