Closing of the "starting game" dialog on error.

This commit is contained in:
lotodore
2007-10-18 20:58:56 +00:00
parent c7a36ceca5
commit c55089e728
@@ -62,10 +62,10 @@ void gameLobbyDialogImpl::exec()
groupBox_lobbyChat->hide(); groupBox_lobbyChat->hide();
} }
QDialog::exec();
waitStartGameMsgBoxTimer->stop(); waitStartGameMsgBoxTimer->stop();
waitStartGameMsgBox->hide(); waitStartGameMsgBox->hide();
QDialog::exec();
} }
@@ -173,8 +173,6 @@ void gameLobbyDialogImpl::refresh(int actionID) {
if (actionID == MSG_NET_GAME_CLIENT_START) if (actionID == MSG_NET_GAME_CLIENT_START)
{ {
waitStartGameMsgBoxTimer->stop();
waitStartGameMsgBox->hide();
QTimer::singleShot(500, this, SLOT(accept())); QTimer::singleShot(500, this, SLOT(accept()));
} }
} }
@@ -568,8 +566,8 @@ void gameLobbyDialogImpl::playerSelected(QTreeWidgetItem* item, QTreeWidgetItem*
void gameLobbyDialogImpl::startGame() { void gameLobbyDialogImpl::startGame() {
assert(mySession); assert(mySession);
waitStartGameMsgBoxTimer->start(500);
mySession->sendStartEvent(checkBox_fillUpWithComputerOpponents->isChecked()); mySession->sendStartEvent(checkBox_fillUpWithComputerOpponents->isChecked());
waitStartGameMsgBoxTimer->start(500);
} }
void gameLobbyDialogImpl::leaveGame() { void gameLobbyDialogImpl::leaveGame() {
@@ -670,5 +668,3 @@ void gameLobbyDialogImpl::showWaitStartGameMsgBox() {
waitStartGameMsgBox->activateWindow(); waitStartGameMsgBox->activateWindow();
} }