From 2c6b3b89da2a728ba6683d9f4455139372beb21b Mon Sep 17 00:00:00 2001 From: John Fultz Date: Mon, 14 Jan 2019 02:46:35 -0600 Subject: Fix #21, committing a phoney cannot be canceled. When going back to edit history, typing a phoney correctly brought up a dialog, but indicating you wanted to cancel the phoney play didn't stop the play from going down, or a subsequent computer player from making its play. --- quacker/movebox.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'quacker/movebox.cpp') diff --git a/quacker/movebox.cpp b/quacker/movebox.cpp index 7b6ccd9..c7e5156 100644 --- a/quacker/movebox.cpp +++ b/quacker/movebox.cpp @@ -61,7 +61,7 @@ void MoveBox::moveActivated(QTreeWidgetItem *item) { if (item == 0) { - emit setCandidateMove(Quackle::Move::createNonmove()); + emit setCandidateMove(Quackle::Move::createNonmove(), nullptr); return; } @@ -73,7 +73,7 @@ void MoveBox::moveActivated(QTreeWidgetItem *item) { if (it.value() == item) { - emit setCandidateMove(it.key()); + emit setCandidateMove(it.key(), nullptr); break; } } @@ -130,7 +130,7 @@ void MoveBox::removeMove() { if (mapIt.value() == nextSelection) { - emit setCandidateMove(mapIt.key()); + emit setCandidateMove(mapIt.key(), nullptr); break; } } -- cgit v1.2.3