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). Change-Id: I7855fd7c24ebfc28fbb912966f8010caba914fe7 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 9e5e330a09607c62fa440f6222cb75005be12b01) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
65465c2693
commit
f730cc755b
@ -254,7 +254,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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user