macOS: Add missing braces in QCocoaIntegration::updateScreens()

Change-Id: I0f5009c8ba8f2f1853a968d9853dc45e8cbc2b5f
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Tor Arne Vestbø 2018-08-06 18:03:52 +02:00
parent ca14151a0c
commit fbce032226

View File

@ -255,7 +255,7 @@ void QCocoaIntegration::updateScreens()
continue;
}
QCocoaScreen* screen = nullptr;
foreach (QCocoaScreen* existingScr, mScreens)
foreach (QCocoaScreen* existingScr, mScreens) {
// NSScreen documentation says do not cache the array returned from [NSScreen screens].
// However in practice, we can identify a screen by its pointer: if resolution changes,
// the NSScreen object will be the same instance, just with different values.
@ -263,6 +263,7 @@ void QCocoaIntegration::updateScreens()
screen = existingScr;
break;
}
}
if (screen) {
remainingScreens.remove(screen);
screen->updateProperties();