From bd535932706a0fef0fdda5d9201c6d06d1c7ff1d Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Sat, 7 Dec 2013 21:11:50 +0100 Subject: [PATCH] Don't allow questions with answers but no winner --- windows.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/windows.py b/windows.py index 6568855..7c455ff 100644 --- a/windows.py +++ b/windows.py @@ -255,6 +255,9 @@ class EditAnswersWindow(QtGui.QDialog): if len(self._tries) == 0: self._nobody = False else: + if self._tries[currFocus][1]: + # give nobody the score for this one + self._nobody = True self._tries[currFocus] = (self._tries[currFocus][0], False) elif e.key() == QtCore.Qt.Key_A: self._tries.append((self._players[0], False))