1114 |
1114 |
1115 if (hwnet) |
1115 if (hwnet) |
1116 { |
1116 { |
1117 // disconnect connections first to ensure their inexistance and not to connect twice |
1117 // disconnect connections first to ensure their inexistance and not to connect twice |
1118 ui.pageNetGame->BtnStart->disconnect(hwnet); |
1118 ui.pageNetGame->BtnStart->disconnect(hwnet); |
|
1119 ui.pageNetGame->BtnUpdate->disconnect(hwnet); |
|
1120 ui.pageNetGame->leRoomName->setText(hwnet->getRoom()); |
1119 ui.pageNetGame->restrictJoins->disconnect(hwnet); |
1121 ui.pageNetGame->restrictJoins->disconnect(hwnet); |
1120 ui.pageNetGame->restrictTeamAdds->disconnect(hwnet); |
1122 ui.pageNetGame->restrictTeamAdds->disconnect(hwnet); |
1121 connect(ui.pageNetGame->BtnStart, SIGNAL(clicked()), hwnet, SLOT(startGame())); |
1123 connect(ui.pageNetGame->BtnStart, SIGNAL(clicked()), hwnet, SLOT(startGame())); |
|
1124 connect(ui.pageNetGame, SIGNAL(askForUpdateRoomName(const QString &)), |
|
1125 hwnet, SLOT(updateRoomName(const QString &))); |
1122 connect(ui.pageNetGame->restrictJoins, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictJoins())); |
1126 connect(ui.pageNetGame->restrictJoins, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictJoins())); |
1123 connect(ui.pageNetGame->restrictTeamAdds, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictTeamAdds())); |
1127 connect(ui.pageNetGame->restrictTeamAdds, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictTeamAdds())); |
1124 connect(ui.pageNetGame->pGameCFG->GameSchemes->model(), |
1128 connect(ui.pageNetGame->pGameCFG->GameSchemes->model(), |
1125 SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)), |
1129 SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)), |
1126 ui.pageNetGame->pGameCFG, |
1130 ui.pageNetGame->pGameCFG, |