added none check on budget setGame

This commit is contained in:
Ignacio Muñoz Fernandez 2020-11-27 00:02:40 +01:00 committed by Dan Albert
parent a0d38f7465
commit 7fcf74a8ed

View File

@ -37,6 +37,9 @@ class QBudgetBox(QGroupBox):
self.money_amount.setText(str(budget) + "M (+" + str(reward) + "M)")
def setGame(self, game):
if game is None:
return
self.game = game
self.setBudget(self.game.budget, self.game.budget_reward_amount)
self.finances.setEnabled(True)