mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
added none check on budget setGame
This commit is contained in:
parent
a0d38f7465
commit
7fcf74a8ed
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user