Driectly return when no game log is available

This commit is contained in:
Mathieu Comandon 2015-03-05 14:38:43 +01:00
parent d30a80a9e5
commit 19f1269125

View file

@ -444,6 +444,7 @@ class LutrisWindow(object):
def on_view_game_log_activate(self, widget):
if not self.running_game:
dialogs.ErrorDialog('No game log available')
return
log_title = "Log for {}".format(self.running_game)
log_window = LogWindow(log_title, self.window)
log_window.logtextview.set_text(self.running_game.game_log)