- disable join button when auto searching for servers

This commit is contained in:
Mark Vejvoda 2010-12-18 21:35:05 +00:00
parent 3e20d3ffe8
commit dc87b9b452
1 changed files with 2 additions and 0 deletions

View File

@ -167,6 +167,7 @@ void MenuStateJoinGame::DiscoveredServers(std::vector<string> serverList) {
autoConnectToServer = false;
buttonAutoFindServers.setEnabled(true);
buttonConnect.setEnabled(true);
if(serverList.size() > 0) {
string bestIPMatch = "";
std::vector<std::string> localIPList = Socket::getLocalIPAddressList();
@ -270,6 +271,7 @@ void MenuStateJoinGame::mouseClick(int x, int y, MouseButton mouseButton)
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
buttonAutoFindServers.setEnabled(false);
buttonConnect.setEnabled(false);
clientInterface->discoverServers(this);
}
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);