| 1 |
From 06cbaff877b0a5fc7e093494ee76eb32df31443f Mon Sep 17 00:00:00 2001 |
| 2 |
From: tobtoht <[email protected]> |
| 3 |
Date: Mon, 27 Nov 2023 23:36:07 +0200 |
| 4 |
Subject: [PATCH] Revert "macOS: Silence warning about supporting secure state |
| 5 |
restoration" |
| 6 |
|
| 7 |
This reverts commit 546dae9285fe97defdab73437d6ae2bf19b806d8. |
| 8 |
--- |
| 9 |
.../cocoa/qcocoaapplicationdelegate.mm | 17 ----------------- |
| 10 |
1 file changed, 17 deletions(-) |
| 11 |
|
| 12 |
diff --git a/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm b/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm |
| 13 |
index 581777f240..6e5bcc01af 100644 |
| 14 |
--- a/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm |
| 15 |
+++ b/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm |
| 16 |
@@ -346,23 +346,6 @@ QT_USE_NAMESPACE |
| 17 |
else |
| 18 |
QWindowSystemInterface::handleFileOpenEvent(qurlString); |
| 19 |
} |
| 20 |
- |
| 21 |
-- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)application |
| 22 |
-{ |
| 23 |
- if (@available(macOS 12, *)) { |
| 24 |
- if ([reflectionDelegate respondsToSelector:_cmd]) |
| 25 |
- return [reflectionDelegate applicationSupportsSecureRestorableState:application]; |
| 26 |
- } |
| 27 |
- |
| 28 |
- // We don't support or implement state restorations via the AppKit |
| 29 |
- // state restoration APIs, but if we did, we would/should support |
| 30 |
- // secure state restoration. This is the default for apps linked |
| 31 |
- // against the macOS 14 SDK, but as we target versions below that |
| 32 |
- // as well we need to return YES here explicitly to silence a runtime |
| 33 |
- // warning. |
| 34 |
- return YES; |
| 35 |
-} |
| 36 |
- |
| 37 |
@end |
| 38 |
|
| 39 |
@implementation QCocoaApplicationDelegate (Menus) |
| 40 |
-- |
| 41 |
2.43.0 |
| 42 |
|