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()
|
void gameLobbyDialogImpl::joinAnyGameButtonRefresh()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ public slots:
|
|||||||
bool event(QEvent * event);
|
bool event(QEvent * event);
|
||||||
void showGameDescription(bool show);
|
void showGameDescription(bool show);
|
||||||
void showWaitStartGameMsgBox();
|
void showWaitStartGameMsgBox();
|
||||||
|
void hideWaitStartGameMsgBox();
|
||||||
void joinAnyGameButtonRefresh();
|
void joinAnyGameButtonRefresh();
|
||||||
void reject();
|
void reject();
|
||||||
void closeEvent(QCloseEvent *event);
|
void closeEvent(QCloseEvent *event);
|
||||||
|
|||||||
@@ -928,6 +928,7 @@ void startWindowImpl::networkNotification(int notificationId)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case NTF_NET_REMOVED_START_FAILED: {
|
case NTF_NET_REMOVED_START_FAILED: {
|
||||||
|
myGameLobbyDialog->hideWaitStartGameMsgBox();
|
||||||
QMessageBox::warning(this, tr("Network Notification"),
|
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user