From 5a41ce5e2d53553f5c3dcf2fff85b9bbd2ed6a57 Mon Sep 17 00:00:00 2001 From: kleuter Date: Sat, 20 Apr 2019 14:55:02 +0200 Subject: [PATCH] 5.12.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.12.3/qtbase/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm b/5.12.3/qtbase/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm index 2cf6672..a183406 100644 --- a/5.12.3/qtbase/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm +++ b/5.12.3/qtbase/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm @@ -227,10 +227,10 @@ QT_USE_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 @@ -241,7 +241,7 @@ QT_USE_NAMESPACE - (void)removeAppleEventHandlers { NSAppleEventManager *eventManager = [NSAppleEventManager sharedAppleEventManager]; - [eventManager removeEventHandlerForEventClass:kCoreEventClass andEventID:kAEQuitApplication]; + //[eventManager removeEventHandlerForEventClass:kCoreEventClass andEventID:kAEQuitApplication]; [eventManager removeEventHandlerForEventClass:kInternetEventClass andEventID:kAEGetURL]; }