QTfrontend/hwform.cpp
changeset 4831 57b46b5dbfff
parent 4594 5645462cc78f
child 4845 9a0f5377c529
equal deleted inserted replaced
4830:c5ddc3e6c8a4 4831:57b46b5dbfff
   543     if ((!hwnet) || (!hwnet->isInRoom()))
   543     if ((!hwnet) || (!hwnet->isInRoom()))
   544         if (id == ID_PAGE_NETGAME || id == ID_PAGE_NETGAME)
   544         if (id == ID_PAGE_NETGAME || id == ID_PAGE_NETGAME)
   545             GoBack();
   545             GoBack();
   546 
   546 
   547     if (curid == ID_PAGE_ROOMSLIST) NetDisconnect();
   547     if (curid == ID_PAGE_ROOMSLIST) NetDisconnect();
   548     if (curid == ID_PAGE_NETGAME) hwnet->partRoom();
   548     if (curid == ID_PAGE_NETGAME && hwnet) hwnet->partRoom();
   549     // need to work on this, can cause invalid state for admin quit trying to prevent bad state message on kick
   549     // need to work on this, can cause invalid state for admin quit trying to prevent bad state message on kick
   550     //if (curid == ID_PAGE_NETGAME && (!game || game->gameState != gsStarted)) hwnet->partRoom();
   550     //if (curid == ID_PAGE_NETGAME && (!game || game->gameState != gsStarted)) hwnet->partRoom();
   551 
   551 
   552     if (curid == ID_PAGE_SCHEME)
   552     if (curid == ID_PAGE_SCHEME)
   553         ammoSchemeModel->Save();
   553         ammoSchemeModel->Save();