mirror of
https://github.com/stenzek/duckstation.git
synced 2025-07-18 16:10:07 +00:00
Qt: Fix crash on triggering certain actions before display widget is created (#3482)
This commit is contained in:
parent
67381754fa
commit
01b81c74ef
@ -3200,7 +3200,7 @@ MainWindow::SystemLock MainWindow::pauseAndLockSystem()
|
||||
|
||||
// Now we'll either have a borderless window, or a regular window (if we were exclusive fullscreen).
|
||||
QWidget* dialog_parent = getDisplayContainer();
|
||||
if (dialog_parent->parent())
|
||||
if (!dialog_parent || dialog_parent->parent())
|
||||
dialog_parent = this;
|
||||
|
||||
return SystemLock(dialog_parent, was_paused, was_fullscreen);
|
||||
|
Loading…
x
Reference in New Issue
Block a user