Fix error (unable to start DCS liberation if no save file exists)

This commit is contained in:
Khopa 2019-10-26 20:58:28 +02:00
parent 27e3cf8ac5
commit 2936df6a02

View File

@ -33,7 +33,7 @@ class QTopPanel(QFrame):
self.proceedButton.setIcon(CONST.ICONS["PassTurn"])
self.proceedButton.setProperty("style", "btn-primary")
self.proceedButton.clicked.connect(self.proceed)
if self.game.turn == 0:
if self.game and self.game.turn == 0:
self.proceedButton.setEnabled(False)