mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-03 13:15:17 -06: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)
|
clans_settings_dialog::clans_settings_dialog(QWidget* parent)
|
||||||
: QDialog(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();
|
g_cfg_clans.load();
|
||||||
|
|
||||||
setWindowTitle(tr("Clans Configuration"));
|
setWindowTitle(tr("Clans Configuration"));
|
||||||
|
|||||||
@ -2994,6 +2994,12 @@ void main_window::CreateConnects()
|
|||||||
|
|
||||||
connect(ui->confClansAct, &QAction::triggered, this, [this]()
|
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);
|
clans_settings_dialog dlg(this);
|
||||||
dlg.exec();
|
dlg.exec();
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user