Prevent crash in QWasmScreen::resizeMaximizedWindows()
screen() may return a null QScreen pointer during screen initialization. Fixes: QTBUG-78118 Change-Id: Ide26eb3f06861c38cd7ae56789dd010d4cd7e572 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
parent
6c0e1dba40
commit
cd92049a95
@ -139,6 +139,8 @@ QPlatformCursor *QWasmScreen::cursor() const
|
||||
|
||||
void QWasmScreen::resizeMaximizedWindows()
|
||||
{
|
||||
if (!screen())
|
||||
return;
|
||||
QPlatformScreen::resizeMaximizedWindows();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user