519 if ((!hwnet) || (!hwnet->isInRoom())) |
519 if ((!hwnet) || (!hwnet->isInRoom())) |
520 if (id == ID_PAGE_NETGAME || id == ID_PAGE_NETGAME) |
520 if (id == ID_PAGE_NETGAME || id == ID_PAGE_NETGAME) |
521 GoBack(); |
521 GoBack(); |
522 |
522 |
523 if (curid == ID_PAGE_ROOMSLIST) NetDisconnect(); |
523 if (curid == ID_PAGE_ROOMSLIST) NetDisconnect(); |
|
524 if (curid == ID_PAGE_NETGAME) hwnet->partRoom(); |
524 |
525 |
525 if (curid == ID_PAGE_SCHEME) |
526 if (curid == ID_PAGE_SCHEME) |
526 ammoSchemeModel->Save(); |
527 ammoSchemeModel->Save(); |
527 } |
528 } |
528 |
529 |
676 connect(hwnet, SIGNAL(AskForRunGame()), this, SLOT(CreateNetGame())); |
677 connect(hwnet, SIGNAL(AskForRunGame()), this, SLOT(CreateNetGame())); |
677 connect(hwnet, SIGNAL(Connected()), this, SLOT(NetConnected())); |
678 connect(hwnet, SIGNAL(Connected()), this, SLOT(NetConnected())); |
678 connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter())); |
679 connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter())); |
679 connect(hwnet, SIGNAL(LeftRoom()), this, SLOT(NetLeftRoom())); |
680 connect(hwnet, SIGNAL(LeftRoom()), this, SLOT(NetLeftRoom())); |
680 connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&))); |
681 connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&))); |
681 connect(ui.pageNetGame->BtnBack, SIGNAL(clicked()), hwnet, SLOT(partRoom())); |
682 //connect(ui.pageNetGame->BtnBack, SIGNAL(clicked()), hwnet, SLOT(partRoom())); |
682 |
683 |
683 // rooms list page stuff |
684 // rooms list page stuff |
684 connect(hwnet, SIGNAL(roomsList(const QStringList&)), |
685 connect(hwnet, SIGNAL(roomsList(const QStringList&)), |
685 ui.pageRoomsList, SLOT(setRoomsList(const QStringList&))); |
686 ui.pageRoomsList, SLOT(setRoomsList(const QStringList&))); |
686 connect(hwnet, SIGNAL(adminAccess(bool)), |
687 connect(hwnet, SIGNAL(adminAccess(bool)), |