summaryrefslogtreecommitdiff
path: root/quacker/movebox.cpp
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2019-01-14 02:46:35 -0600
committerJohn Fultz <jfultz@wolfram.com>2019-01-14 02:47:01 -0600
commit2c6b3b89da2a728ba6683d9f4455139372beb21b (patch)
tree17e01fc5b5e736ec42b9b5e406371f03b1da216b /quacker/movebox.cpp
parent3938bd82ac4ac35916c83b378776159952f744eb (diff)
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.
Diffstat (limited to 'quacker/movebox.cpp')
-rw-r--r--quacker/movebox.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}
}