fixes "leavegame-button accidentally disabled" and "preactions shows

during autofold"
This commit is contained in:
doitux
2011-12-29 22:43:42 +00:00
parent d12ee37bac
commit d08352dd72
2 changed files with 3 additions and 1 deletions
@@ -1384,6 +1384,8 @@ void gameLobbyDialogImpl::closeEvent(QCloseEvent *event)
waitStartGameMsgBoxTimer->stop();
waitStartGameMsgBox->hide();
waitRejoinStartGameMsgBox->hide();
//enable leave button again - it was disabled during waitxyzMsgBoxes
pushButton_Leave->setEnabled(true);
}
+1 -1
View File
@@ -1563,7 +1563,7 @@ void gameTableImpl::provideMyActions(int mode)
PlayerList activePlayerList = currentHand->getActivePlayerList();
//really disabled buttons if human player is fold/all-in or ... and not called from dealberocards
if(/*pushButton_BetRaise->isCheckable() && */mode != 0 && (humanPlayer->getMyAction() == PLAYER_ACTION_ALLIN || humanPlayer->getMyAction() == PLAYER_ACTION_FOLD || (humanPlayer->getMySet() == currentHand->getCurrentBeRo()->getHighestSet() && (humanPlayer->getMyAction() != PLAYER_ACTION_NONE)))) {
if(/*pushButton_BetRaise->isCheckable() && */(mode != 0 && (humanPlayer->getMyAction() == PLAYER_ACTION_ALLIN || humanPlayer->getMyAction() == PLAYER_ACTION_FOLD || (humanPlayer->getMySet() == currentHand->getCurrentBeRo()->getHighestSet() && (humanPlayer->getMyAction() != PLAYER_ACTION_NONE)))) || !humanPlayer->isSessionActive() /*autofold*/) {
pushButton_BetRaise->setText("");
pushButton_CallCheck->setText("");