mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-16 04:09:07 +00:00
Clans: fix empty dialog accidentally spawning
Signed-off-by: zeph <zephyrzefa15@gmail.com>
This commit is contained in:
parent
6afa8085be
commit
520d0390e4
@ -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"));
|
||||
|
||||
@ -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();
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user