fixes "leavegame-button accidentally disabled" and "preactions shows
during autofold"
This commit is contained in:
@@ -1384,6 +1384,8 @@ void gameLobbyDialogImpl::closeEvent(QCloseEvent *event)
|
|||||||
waitStartGameMsgBoxTimer->stop();
|
waitStartGameMsgBoxTimer->stop();
|
||||||
waitStartGameMsgBox->hide();
|
waitStartGameMsgBox->hide();
|
||||||
waitRejoinStartGameMsgBox->hide();
|
waitRejoinStartGameMsgBox->hide();
|
||||||
|
//enable leave button again - it was disabled during waitxyzMsgBoxes
|
||||||
|
pushButton_Leave->setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1563,7 +1563,7 @@ void gameTableImpl::provideMyActions(int mode)
|
|||||||
PlayerList activePlayerList = currentHand->getActivePlayerList();
|
PlayerList activePlayerList = currentHand->getActivePlayerList();
|
||||||
|
|
||||||
//really disabled buttons if human player is fold/all-in or ... and not called from dealberocards
|
//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_BetRaise->setText("");
|
||||||
pushButton_CallCheck->setText("");
|
pushButton_CallCheck->setText("");
|
||||||
|
|||||||
Reference in New Issue
Block a user