Don't allow questions with answers but no winner

This commit is contained in:
Sebastian Lohff 2013-12-07 21:11:50 +01:00
parent 1b93da5f11
commit bd53593270
1 changed files with 3 additions and 0 deletions

View File

@ -255,6 +255,9 @@ class EditAnswersWindow(QtGui.QDialog):
if len(self._tries) == 0: if len(self._tries) == 0:
self._nobody = False self._nobody = False
else: else:
if self._tries[currFocus][1]:
# give nobody the score for this one
self._nobody = True
self._tries[currFocus] = (self._tries[currFocus][0], False) self._tries[currFocus] = (self._tries[currFocus][0], False)
elif e.key() == QtCore.Qt.Key_A: elif e.key() == QtCore.Qt.Key_A:
self._tries.append((self._players[0], False)) self._tries.append((self._players[0], False))