Clans: fix empty dialog accidentally spawning

Signed-off-by: zeph <zephyrzefa15@gmail.com>
This commit is contained in:
zeph 2025-12-10 20:55:21 +01:00
parent 6afa8085be
commit 520d0390e4
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View File

@ -13,12 +13,6 @@
clans_settings_dialog::clans_settings_dialog(QWidget* parent)
: QDialog(parent)
{
if (!Emu.IsStopped())
{
QMessageBox::critical(this, tr("Error: Emulation Running"), tr("You need to stop the emulator before editing Clans connection information!"), QMessageBox::Ok);
return;
}
g_cfg_clans.load();
setWindowTitle(tr("Clans Configuration"));

View File

@ -2994,6 +2994,12 @@ void main_window::CreateConnects()
connect(ui->confClansAct, &QAction::triggered, this, [this]()
{
if (!Emu.IsStopped())
{
QMessageBox::critical(this, tr("Error: Emulation Running"), tr("You need to stop the emulator before editing Clans connection information!"), QMessageBox::Ok);
return;
}
clans_settings_dialog dlg(this);
dlg.exec();
});