1516 if (hwnet) |
1516 if (hwnet) |
1517 { |
1517 { |
1518 // disconnect connections first to ensure their inexistance and not to connect twice |
1518 // disconnect connections first to ensure their inexistance and not to connect twice |
1519 ui.pageNetGame->BtnStart->disconnect(hwnet); |
1519 ui.pageNetGame->BtnStart->disconnect(hwnet); |
1520 ui.pageNetGame->BtnUpdate->disconnect(hwnet); |
1520 ui.pageNetGame->BtnUpdate->disconnect(hwnet); |
1521 ui.pageNetGame->setRoomName(hwnet->getRoom()); |
|
1522 ui.pageNetGame->restrictJoins->disconnect(hwnet); |
1521 ui.pageNetGame->restrictJoins->disconnect(hwnet); |
1523 ui.pageNetGame->restrictTeamAdds->disconnect(hwnet); |
1522 ui.pageNetGame->restrictTeamAdds->disconnect(hwnet); |
1524 ui.pageNetGame->disconnect(hwnet, SLOT(updateRoomName(const QString&))); |
1523 ui.pageNetGame->disconnect(hwnet, SLOT(updateRoomName(const QString&))); |
|
1524 |
|
1525 ui.pageNetGame->setRoomName(hwnet->getRoom()); |
|
1526 |
1525 connect(ui.pageNetGame->BtnStart, SIGNAL(clicked()), hwnet, SLOT(startGame())); |
1527 connect(ui.pageNetGame->BtnStart, SIGNAL(clicked()), hwnet, SLOT(startGame())); |
1526 connect(ui.pageNetGame, SIGNAL(askForUpdateRoomName(const QString &)), hwnet, SLOT(updateRoomName(const QString &))); |
1528 connect(ui.pageNetGame, SIGNAL(askForUpdateRoomName(const QString &)), hwnet, SLOT(updateRoomName(const QString &))); |
1527 connect(ui.pageNetGame->restrictJoins, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictJoins())); |
1529 connect(ui.pageNetGame->restrictJoins, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictJoins())); |
1528 connect(ui.pageNetGame->restrictTeamAdds, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictTeamAdds())); |
1530 connect(ui.pageNetGame->restrictTeamAdds, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictTeamAdds())); |
1529 connect(ui.pageNetGame->pGameCFG->GameSchemes->model(), |
1531 connect(ui.pageNetGame->pGameCFG->GameSchemes->model(), |