fix overlapping dialog bug if internet connection is to slow during game

start
This commit is contained in:
doitux
2011-08-21 06:32:28 +00:00
parent a23ccb10f1
commit 3d98dd3445
3 changed files with 7 additions and 0 deletions
@@ -1315,6 +1315,11 @@ void gameLobbyDialogImpl::showWaitStartGameMsgBox()
}
}
void gameLobbyDialogImpl::hideWaitStartGameMsgBox()
{
waitStartGameMsgBox->hide();
}
void gameLobbyDialogImpl::joinAnyGameButtonRefresh()
{
@@ -113,6 +113,7 @@ public slots:
bool event(QEvent * event);
void showGameDescription(bool show);
void showWaitStartGameMsgBox();
void hideWaitStartGameMsgBox();
void joinAnyGameButtonRefresh();
void reject();
void closeEvent(QCloseEvent *event);
@@ -928,6 +928,7 @@ void startWindowImpl::networkNotification(int notificationId)
}
break;
case NTF_NET_REMOVED_START_FAILED: {
myGameLobbyDialog->hideWaitStartGameMsgBox();
QMessageBox::warning(this, tr("Network Notification"),
tr("Your connection to the server is very slow, the game had to start without you."),
QMessageBox::Close);