QTfrontend/hwform.cpp
changeset 4432 81f52117085d
parent 4431 a5827e0e5e0b
child 4433 e0092290b7c5
equal deleted inserted replaced
4431:a5827e0e5e0b 4432:81f52117085d
   545     if ((!hwnet) || (!hwnet->isInRoom()))
   545     if ((!hwnet) || (!hwnet->isInRoom()))
   546         if (id == ID_PAGE_NETGAME || id == ID_PAGE_NETGAME)
   546         if (id == ID_PAGE_NETGAME || id == ID_PAGE_NETGAME)
   547             GoBack();
   547             GoBack();
   548 
   548 
   549     if (curid == ID_PAGE_ROOMSLIST) NetDisconnect();
   549     if (curid == ID_PAGE_ROOMSLIST) NetDisconnect();
   550     if (curid == ID_PAGE_NETGAME && (!game || game->gameState != gsStarted)) hwnet->partRoom();
   550     if (curid == ID_PAGE_NETGAME) hwnet->partRoom();
       
   551     // need to work on this, can cause invalid state for admin quit trying to prevent bad state message on kick
       
   552     //if (curid == ID_PAGE_NETGAME && (!game || game->gameState != gsStarted)) hwnet->partRoom();
   551 
   553 
   552     if (curid == ID_PAGE_SCHEME)
   554     if (curid == ID_PAGE_SCHEME)
   553         ammoSchemeModel->Save();
   555         ammoSchemeModel->Save();
   554 }
   556 }
   555 
   557