Qt: Delete settings windows on close

This commit is contained in:
Stenzek
2024-01-20 20:10:55 +10:00
parent b98ac8722a
commit a0370c7fb7
2 changed files with 9 additions and 1 deletions

View File

@ -68,6 +68,13 @@ SettingsWindow::~SettingsWindow()
s_open_game_properties_dialogs.removeOne(this);
}
void SettingsWindow::closeEvent(QCloseEvent* event)
{
// we need to clean up ourselves, since we're not modal
if (isPerGameSettings())
deleteLater();
}
void SettingsWindow::addPages()
{
addWidget(