summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-14 10:11:19 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 06:43:12 (GMT)
commit13c861ab9ef22156fe5a6637e8255e07ae76026c (patch)
tree4eeb206c345e8bb6cb8034af534254860160dea3
parentf001f762ae0f9cf7d419bddfeb16c1575505831b (diff)
SelectDialog: do not stop timer for error messages
-rw-r--r--src/humanclient.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/humanclient.py b/src/humanclient.py
index 4d3a803..a29faa4 100644
--- a/src/humanclient.py
+++ b/src/humanclient.py
@@ -344,8 +344,6 @@ class ClientDialog(QDialog):
if self.answered:
# sometimes we get this event twice
return
- self.timer.stop()
- self.answered = True
if button is None:
button = self.focusWidget()
if isinstance(button, Message):
@@ -356,6 +354,8 @@ class ClientDialog(QDialog):
if not self.client.game.myself.sayable[answer]:
Sorry(m18n('You cannot say %1', answer.i18nName))
return
+ self.timer.stop()
+ self.answered = True
Internal.scene.clientDialog = None
self.deferred.callback(answer)