summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-14 11:25:57 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 06:43:12 (GMT)
commitc219ffc2fcfc6a040595ce6a349d4efbecde7f49 (patch)
tree1214f5b6f7b9dda50731c0af50030f8070da4b9f
parent13c861ab9ef22156fe5a6637e8255e07ae76026c (diff)
Do not stop after wrong claim
BUG: 362381 FIXED-IN: 16.08.1
-rw-r--r--src/humanclient.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/humanclient.py b/src/humanclient.py
index a29faa4..be0ab06 100644
--- a/src/humanclient.py
+++ b/src/humanclient.py
@@ -178,6 +178,7 @@ class ClientDialog(QDialog):
self.btnHeight = 0
self.answered = False
self.move = None
+ self.sorry = None
def keyPressEvent(self, event):
"""ESC selects default answer"""
@@ -352,10 +353,14 @@ class ClientDialog(QDialog):
else:
answer = button.message
if not self.client.game.myself.sayable[answer]:
- Sorry(m18n('You cannot say %1', answer.i18nName))
+ self.proposeAction().setFocus() # go back to default action
+ self.sorry = Sorry(m18n('You cannot say %1', answer.i18nName))
return
self.timer.stop()
self.answered = True
+ if self.sorry:
+ self.sorry.cancel()
+ self.sorry = None
Internal.scene.clientDialog = None
self.deferred.callback(answer)