[Netplay] Show error dialog if failed to connect to netplay server when Traversal and Force Listen Port is enabled

This commit is contained in:
CastellaFactory 2015-09-20 20:10:54 +09:00
parent 1f83a3d146
commit 7ddfe713d5
1 changed files with 5 additions and 1 deletions

View File

@ -360,7 +360,11 @@ void NetPlaySetupFrame::OnHost(wxCommandEvent&)
}
else
{
WxUtils::ShowErrorDialog(_("Failed to listen. Is another instance of the NetPlay server running?"));
if (trav && m_traversal_listen_port_enabled->IsChecked())
WxUtils::ShowErrorDialog(
_("Failed to listen. Someone is probably already listening on the port you specified."));
else
WxUtils::ShowErrorDialog(_("Failed to listen. Is another instance of the NetPlay server running?"));
}
}