DolphinQt: Check presence of region in NetPlaySetupDialog

This commit is contained in:
JosJuice 2019-12-23 22:50:53 +01:00
parent 10e98d0985
commit 2fa4ef729f

View File

@ -328,6 +328,14 @@ void NetPlaySetupDialog::accept()
return;
}
if (m_host_server_browser->isChecked() &&
m_host_server_region->currentData().toString().isEmpty())
{
ModalMessageBox::critical(this, tr("Error"),
tr("You must provide a region for your session!"));
return;
}
emit Host(items[0]->text());
}
}