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;
}
void gameLobbyDialogImpl::stopWaitStartGameMsgBoxTimer()
{
waitStartGameMsgBoxTimer->stop();
}
@@ -114,6 +114,7 @@ public slots:
void showGameDescription(bool show);
void showWaitStartGameMsgBox();
void hideWaitStartGameMsgBox();
void stopWaitStartGameMsgBoxTimer();
void joinAnyGameButtonRefresh();
void reject();
void closeEvent(QCloseEvent *event);
+5 -3
View File
@@ -928,10 +928,12 @@ void startWindowImpl::networkNotification(int notificationId)
}
break;
case NTF_NET_REMOVED_START_FAILED: {
myGameLobbyDialog->hideWaitStartGameMsgBox();
QMessageBox::warning(this, tr("Network Notification"),
myGameLobbyDialog->stopWaitStartGameMsgBoxTimer();
if(QMessageBox::warning(this, tr("Network Notification"),
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;
case NTF_NET_REMOVED_KICKED: {