From be2a4b5254223062e5564bc7572436c081e95f05 Mon Sep 17 00:00:00 2001 From: kleuter Date: Mon, 4 Dec 2017 14:45:50 +0100 Subject: [PATCH] 5.6.3: fix for https://bugreports.qt.io/browse/QTBUG-18624 --- .../plugins/platforms/cocoa/qcocoaapplicationdelegate.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/5.6.3/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm b/5.6.3/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm index 7ae1d0c..e105a41 100644 --- a/5.6.3/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm +++ b/5.6.3/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm @@ -262,10 +262,10 @@ QT_END_NAMESPACE application depends on. */ NSAppleEventManager *eventManager = [NSAppleEventManager sharedAppleEventManager]; - [eventManager setEventHandler:self + /*[eventManager setEventHandler:self andSelector:@selector(appleEventQuit:withReplyEvent:) forEventClass:kCoreEventClass - andEventID:kAEQuitApplication]; + andEventID:kAEQuitApplication];*/ [eventManager setEventHandler:self andSelector:@selector(getUrl:withReplyEvent:) forEventClass:kInternetEventClass @@ -276,7 +276,7 @@ QT_END_NAMESPACE - (void) removeAppleEventHandlers { NSAppleEventManager *eventManager = [NSAppleEventManager sharedAppleEventManager]; - [eventManager removeEventHandlerForEventClass:kCoreEventClass andEventID:kAEQuitApplication]; + //[eventManager removeEventHandlerForEventClass:kCoreEventClass andEventID:kAEQuitApplication]; [eventManager removeEventHandlerForEventClass:kInternetEventClass andEventID:kAEGetURL]; }