fix overlapping dialog bug if internet connection is to slow during game
start
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user