diff --git a/src/qt/qtbase/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm b/src/qt/qtbase/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm index f8411845dc..571dd998ed 100644 --- a/src/qt/qtbase/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm +++ b/src/qt/qtbase/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm @@ -124,7 +124,8 @@ - (void)dealloc [dockMenu release]; [qtMenuLoader release]; if (reflectionDelegate) { - [NSApp setDelegate:reflectionDelegate]; + //[NSApp setDelegate:reflectionDelegate]; + [[NSApplication sharedApplication] setDelegate:reflectionDelegate]; [reflectionDelegate release]; } [[NSNotificationCenter defaultCenter] removeObserver:self];