Fix bug with file name in title with invalid save games.

This commit is contained in:
Chris Seagraves 2021-06-22 16:19:53 -05:00 committed by GitHub
parent 8c71be5257
commit 814519248c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ class QLiberationWindow(QMainWindow):
logging.info("Loading last saved game : " + str(last_save_file))
game = persistency.load_game(last_save_file)
self.onGameGenerated(game)
self.updateWindowTitle(last_save_file)
self.updateWindowTitle(last_save_file if game else None)
except:
logging.info("Error loading latest save game")
else: