summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@nokia.com>2010-10-07 10:36:30 (GMT)
committerAndy Shaw <andy.shaw@nokia.com>2010-10-07 10:36:30 (GMT)
commit3fddf68f376fe06d0af3f390a94ed84cc1a3fa38 (patch)
treee8ad4d744f03f1b94375625832216bd9e421c3bb
parent62a2fe9092d3b6038a08f5c5a7faa4a863b84fdc (diff)
downloadQt-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.mm5
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