From 2fa4ef729fbb058d78f50a591eabba8e29ca5b4a Mon Sep 17 00:00:00 2001 From: JosJuice Date: Mon, 23 Dec 2019 22:50:53 +0100 Subject: [PATCH] DolphinQt: Check presence of region in NetPlaySetupDialog --- Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp b/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp index 268b151df7..44ed4f8b5b 100644 --- a/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp +++ b/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp @@ -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()); } }