Commit 86d5a9c9 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

code refactoring: use local var autoPlaying only if really needed

parent 7514a4fc
......@@ -359,11 +359,11 @@ class PlayingScene(GameScene):
return result
if not self.game:
return succeed(True)
autoPlaying = self.mainWindow.actionAutoPlay.isChecked()
self.mainWindow.actionAutoPlay.setChecked(False)
if self.game.finished():
self.game = None
return succeed(True)
autoPlaying = self.mainWindow.actionAutoPlay.isChecked()
return QuestionYesNo(i18n("Do you really want to abort this game?"), always=True).addCallback(
gotAnswer, autoPlaying)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment