QTfrontend/hwform.cpp
changeset 4431 a5827e0e5e0b
parent 4430 cacda05a053e
child 4432 81f52117085d
equal deleted inserted replaced
4430:cacda05a053e 4431:a5827e0e5e0b
   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) 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();
   554 }
   554 }
   555 
   555