Qt: Return main window info when not running

Needed for DInput.
This commit is contained in:
Stenzek 2023-01-02 12:41:49 +10:00 committed by refractionpcsx2
parent 2d7289a248
commit f96ad8ff6e
1 changed files with 1 additions and 1 deletions

View File

@ -1364,7 +1364,7 @@ void MainWindow::checkForSettingChanges()
std::optional<WindowInfo> MainWindow::getWindowInfo()
{
if (isRenderingToMain())
if (!m_display_widget || isRenderingToMain())
return QtUtils::GetWindowInfoForWidget(this);
else if (QWidget* widget = getDisplayContainer())
return QtUtils::GetWindowInfoForWidget(widget);