diff -r 570224bb8b30 -r e968e19a464c QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Sat Feb 17 21:51:33 2007 +0000 +++ b/QTfrontend/hwform.cpp Sun Feb 18 12:20:36 2007 +0000 @@ -261,6 +261,7 @@ void HWForm::_NetConnect(const QString & hostName, quint16 port, const QString & nick) { hwnet = new HWNewNet(config, ui.pageNetGame->pGameCFG, ui.pageNetGame->pNetTeamsWidget); + connect(hwnet, SIGNAL(GameStateChanged(GameState)), this, SLOT(NetGameStateChanged(GameState))); connect(hwnet, SIGNAL(AddGame(const QString &)), this, SLOT(AddGame(const QString &))); connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter())); connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&))); @@ -358,7 +359,9 @@ void HWForm::NetStartGame() { - hwnet->StartGame(); + ui.pageNetGame->BtnGo->setText(QPushButton::tr("Waiting")); + ui.pageNetGame->BtnGo->setEnabled(false); + hwnet->StartGame(); } void HWForm::AddNetTeam(const HWTeam& team) @@ -373,6 +376,12 @@ game->StartLocal(); } +void HWForm::NetGameStateChanged(GameState __attribute__((unused)) gameState) +{ + ui.pageNetGame->BtnGo->setText(QPushButton::tr("Go!")); + ui.pageNetGame->BtnGo->setEnabled(true); +} + void HWForm::GameStateChanged(GameState gameState) { switch(gameState) {