summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Pocheptsov <[email protected]>2022-10-18 06:37:42 +0200
committerTimur Pocheptsov <[email protected]>2022-10-18 16:15:51 +0200
commit9e5e330a09607c62fa440f6222cb75005be12b01 (patch)
tree90237312b3ca9a83cc51709d5121bf5321716e3d
parentd9280bb63b0c5f0557385832cddc6097c50926c9 (diff)
QIosScreen: retain the right window
When initializing m_uiWindow (instead of trying to retain this window itself, which is harmless, since it's nil, but useless, since it's not the right window). Pick-to: 6.4 6.2 5.15 Change-Id: I7855fd7c24ebfc28fbb912966f8010caba914fe7 Reviewed-by: Tor Arne Vestbø <[email protected]>
-rw-r--r--src/plugins/platforms/ios/qiosscreen.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/ios/qiosscreen.mm b/src/plugins/platforms/ios/qiosscreen.mm
index beaaa3fbfc2..d1ec359f9f5 100644
--- a/src/plugins/platforms/ios/qiosscreen.mm
+++ b/src/plugins/platforms/ios/qiosscreen.mm
@@ -263,7 +263,7 @@ QIOSScreen::QIOSScreen(UIScreen *screen)
if (!qt_apple_isApplicationExtension()) {
for (UIWindow *existingWindow in qt_apple_sharedApplication().windows) {
if (existingWindow.screen == m_uiScreen) {
- m_uiWindow = [m_uiWindow retain];
+ m_uiWindow = [existingWindow retain];
break;
}
}