From 2a8b8d793f1370ccd71d726bee4f64ecf427657d Mon Sep 17 00:00:00 2001 From: doitux Date: Fri, 28 Oct 2011 20:03:26 +0000 Subject: [PATCH] disable leave_game button during game-start or rejoin-start --- src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp b/src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp index 510f2c08..f8fbf3d9 100644 --- a/src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp +++ b/src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp @@ -408,6 +408,7 @@ void gameLobbyDialogImpl::refresh(int actionID) waitRejoinStartGameMsgBox->show(); waitRejoinStartGameMsgBox->raise(); waitRejoinStartGameMsgBox->activateWindow(); + pushButton_Leave->setDisabled(true); } } } @@ -1090,6 +1091,7 @@ void gameLobbyDialogImpl::joinedGameDialogUpdate() pushButton_JoinGame->hide(); pushButton_joinAnyGame->hide(); pushButton_Leave->show(); + pushButton_Leave->setEnabled(true); //this was added to show game infos even if no game was selected (e.g. invite only game) assert(mySession); @@ -1331,6 +1333,7 @@ void gameLobbyDialogImpl::showWaitStartGameMsgBox() waitStartGameMsgBox->show(); waitStartGameMsgBox->raise(); waitStartGameMsgBox->activateWindow(); + pushButton_Leave->setDisabled(true); } }