From 814519248c4a46315bd7162f1165a893dc5ade6c Mon Sep 17 00:00:00 2001 From: Chris Seagraves <47610393+nosv1@users.noreply.github.com> Date: Tue, 22 Jun 2021 16:19:53 -0500 Subject: [PATCH] Fix bug with file name in title with invalid save games. --- qt_ui/windows/QLiberationWindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt_ui/windows/QLiberationWindow.py b/qt_ui/windows/QLiberationWindow.py index a79755c3..f8deb880 100644 --- a/qt_ui/windows/QLiberationWindow.py +++ b/qt_ui/windows/QLiberationWindow.py @@ -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: