summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2019-08-11 08:08:54 -0500
committerJohn Fultz <jfultz@wolfram.com>2019-08-11 08:08:54 -0500
commit5deb07e6f33b1bfa9ea655ee14700dc126f04537 (patch)
treed1190dac8c8a87e79ee8235b8e3d023d8a59ab7c
parentb742761c26955176f5bf5a4627c50362f3494a86 (diff)
Fix "Verify Play" dialog.
If a play was made from tiles not on the rack, it brings up the "Verify Play" dialog, to which one of the options is to cancel the play. But canceling the play didn't work. Now it does.
-rw-r--r--quacker/quacker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/quacker/quacker.cpp b/quacker/quacker.cpp
index 663b0ce..20b2f88 100644
--- a/quacker/quacker.cpp
+++ b/quacker/quacker.cpp
@@ -322,8 +322,7 @@ void TopLevel::setCandidateMove(const Quackle::Move &move, bool *carryOnPtr)
mb.addButton(QMessageBox::No);
QPushButton* mb_unknownRacks = mb.addButton(tr("Assume unknown racks for this game"), QMessageBox::ApplyRole);
mb.exec();
- if (mb.clickedButton() == mb_yes || mb.clickedButton() == mb_unknownRacks)
- carryOn = true;
+ carryOn = (mb.clickedButton() == mb_yes || mb.clickedButton() == mb_unknownRacks);
if (mb.clickedButton() == mb_unknownRacks)
m_game->currentPosition().currentPlayer().setRacksAreKnown(false);
}