disable leave_game button during game-start or rejoin-start

This commit is contained in:
doitux
2011-10-28 20:03:26 +00:00
parent 024f10328a
commit 2a8b8d793f
@@ -408,6 +408,7 @@ void gameLobbyDialogImpl::refresh(int actionID)
waitRejoinStartGameMsgBox->show(); waitRejoinStartGameMsgBox->show();
waitRejoinStartGameMsgBox->raise(); waitRejoinStartGameMsgBox->raise();
waitRejoinStartGameMsgBox->activateWindow(); waitRejoinStartGameMsgBox->activateWindow();
pushButton_Leave->setDisabled(true);
} }
} }
} }
@@ -1090,6 +1091,7 @@ void gameLobbyDialogImpl::joinedGameDialogUpdate()
pushButton_JoinGame->hide(); pushButton_JoinGame->hide();
pushButton_joinAnyGame->hide(); pushButton_joinAnyGame->hide();
pushButton_Leave->show(); 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) //this was added to show game infos even if no game was selected (e.g. invite only game)
assert(mySession); assert(mySession);
@@ -1331,6 +1333,7 @@ void gameLobbyDialogImpl::showWaitStartGameMsgBox()
waitStartGameMsgBox->show(); waitStartGameMsgBox->show();
waitStartGameMsgBox->raise(); waitStartGameMsgBox->raise();
waitStartGameMsgBox->activateWindow(); waitStartGameMsgBox->activateWindow();
pushButton_Leave->setDisabled(true);
} }
} }