Avoid crashing when opening the settings window a second time

This commit is contained in:
Guillaume Meunier
2024-11-01 11:40:19 +01:00
parent 384aec33d4
commit 16a1a7f0bf
+4
View File
@@ -629,6 +629,10 @@ void main_window::on_action_settings()
assert(not settings_window);
settings_window = new settings(server_interface);
connect(settings_window, &QDialog::finished, this, [&]() {
settings_window->deleteLater();
settings_window = nullptr;
});
settings_window->exec();
}