mirror of https://github.com/PCSX2/pcsx2.git
Qt: Fix game properties dialogs keeping app open
This commit is contained in:
parent
94664c24d8
commit
a99a819e75
|
@ -552,6 +552,8 @@ void MainWindow::destroySubWindows()
|
||||||
m_settings_window->deleteLater();
|
m_settings_window->deleteLater();
|
||||||
m_settings_window = nullptr;
|
m_settings_window = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SettingsWindow::closeGamePropertiesDialogs();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::onScreenshotActionTriggered()
|
void MainWindow::onScreenshotActionTriggered()
|
||||||
|
|
|
@ -645,3 +645,11 @@ void SettingsWindow::openGamePropertiesDialog(const GameList::Entry* game, const
|
||||||
dialog->show();
|
dialog->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SettingsWindow::closeGamePropertiesDialogs()
|
||||||
|
{
|
||||||
|
for (SettingsWindow* dialog : s_open_game_properties_dialogs)
|
||||||
|
{
|
||||||
|
dialog->close();
|
||||||
|
dialog->deleteLater();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -56,6 +56,7 @@ public:
|
||||||
~SettingsWindow();
|
~SettingsWindow();
|
||||||
|
|
||||||
static void openGamePropertiesDialog(const GameList::Entry* game, const std::string_view& title, std::string serial, u32 disc_crc);
|
static void openGamePropertiesDialog(const GameList::Entry* game, const std::string_view& title, std::string serial, u32 disc_crc);
|
||||||
|
static void closeGamePropertiesDialogs();
|
||||||
|
|
||||||
SettingsInterface* getSettingsInterface() const;
|
SettingsInterface* getSettingsInterface() const;
|
||||||
__fi bool isPerGameSettings() const { return static_cast<bool>(m_sif); }
|
__fi bool isPerGameSettings() const { return static_cast<bool>(m_sif); }
|
||||||
|
|
Loading…
Reference in New Issue