diff options
author | John Fultz <jfultz@wolfram.com> | 2019-01-14 02:46:35 -0600 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2019-01-14 02:47:01 -0600 |
commit | 2c6b3b89da2a728ba6683d9f4455139372beb21b (patch) | |
tree | 17e01fc5b5e736ec42b9b5e406371f03b1da216b /quacker/boarddisplay.cpp | |
parent | 3938bd82ac4ac35916c83b378776159952f744eb (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/boarddisplay.cpp')
-rw-r--r-- | quacker/boarddisplay.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/quacker/boarddisplay.cpp b/quacker/boarddisplay.cpp index fb6a3ba..78eacdd 100644 --- a/quacker/boarddisplay.cpp +++ b/quacker/boarddisplay.cpp @@ -107,18 +107,18 @@ void BoardWithQuickEntry::quickEditShiftReturnPressed() void BoardWithQuickEntry::plusFive() { m_localCandidateMove.setScoreAddition(m_localCandidateMove.scoreAddition() + 5); - emit setCandidateMove(m_localCandidateMove); + emit setCandidateMove(m_localCandidateMove, nullptr); } void BoardWithQuickEntry::performCommit() { - emit setCandidateMove(m_localCandidateMove); + emit setCandidateMove(m_localCandidateMove, nullptr); emit commit(); } void BoardWithQuickEntry::reset() { - emit setCandidateMove(Quackle::Move::createNonmove()); + emit setCandidateMove(Quackle::Move::createNonmove(), nullptr); } void BoardWithQuickEntry::provideHelp() @@ -203,7 +203,7 @@ void BoardWithQuickEntry::processCommand(const QString &command) } if (move.isAMove()) - emit setCandidateMove(move); + emit setCandidateMove(move, nullptr); } /////////// |