summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 14:27:08 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 14:27:08 (GMT)
commit89709c2591c1e977fa4108af3f3f87436bd1e36d (patch)
treebde712488470917756257ce72cd03e31cfd87e8b
parent4a4523e13f5fd2a8a62f1f88fb6aaec529b27907 (diff)
ScoringDialog does not need Player.computeHand anymore
-rw-r--r--src/scoringdialog.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scoringdialog.py b/src/scoringdialog.py
index ad54b10..b2a8648 100644
--- a/src/scoringdialog.py
+++ b/src/scoringdialog.py
@@ -1076,8 +1076,8 @@ class ScoringDialog(QWidget):
nameLabel.setBuddy(wonBox)
for _ in range(10):
prevTotal = player.handTotal
- handContent = player.computeHand()
- wonBox.setVisible(handContent.won)
+ player.invalidateHand()
+ wonBox.setVisible(player.hand.won)
if not wonBox.isVisibleTo(self) and wonBox.isChecked():
wonBox.setChecked(False)
self.game.winner = None