Don't allow questions with answers but no winner
This commit is contained in:
parent
1b93da5f11
commit
bd53593270
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue