next try for previous fix

This commit is contained in:
doitux
2011-08-21 18:15:42 +00:00
parent 3d98dd3445
commit 22a9cf8a86
3 changed files with 11 additions and 3 deletions
@@ -1938,3 +1938,8 @@ QString gameLobbyDialogImpl::getFullCountryString(QString cs)
} }
return fullString; return fullString;
} }
void gameLobbyDialogImpl::stopWaitStartGameMsgBoxTimer()
{
waitStartGameMsgBoxTimer->stop();
}
@@ -114,6 +114,7 @@ public slots:
void showGameDescription(bool show); void showGameDescription(bool show);
void showWaitStartGameMsgBox(); void showWaitStartGameMsgBox();
void hideWaitStartGameMsgBox(); void hideWaitStartGameMsgBox();
void stopWaitStartGameMsgBoxTimer();
void joinAnyGameButtonRefresh(); void joinAnyGameButtonRefresh();
void reject(); void reject();
void closeEvent(QCloseEvent *event); void closeEvent(QCloseEvent *event);
+5 -3
View File
@@ -928,10 +928,12 @@ void startWindowImpl::networkNotification(int notificationId)
} }
break; break;
case NTF_NET_REMOVED_START_FAILED: { case NTF_NET_REMOVED_START_FAILED: {
myGameLobbyDialog->hideWaitStartGameMsgBox(); myGameLobbyDialog->stopWaitStartGameMsgBoxTimer();
QMessageBox::warning(this, tr("Network Notification"), if(QMessageBox::warning(this, tr("Network Notification"),
tr("Your connection to the server is very slow, the game had to start without you."), tr("Your connection to the server is very slow, the game had to start without you."),
QMessageBox::Close); QMessageBox::Close) == QMessageBox::Close) {
myGameLobbyDialog->hideWaitStartGameMsgBox();
}
} }
break; break;
case NTF_NET_REMOVED_KICKED: { case NTF_NET_REMOVED_KICKED: {