From 5deb07e6f33b1bfa9ea655ee14700dc126f04537 Mon Sep 17 00:00:00 2001 From: John Fultz Date: Sun, 11 Aug 2019 08:08:54 -0500 Subject: 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. --- quacker/quacker.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'quacker/quacker.cpp') 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); } -- cgit v1.2.3