diff --git a/lutris/gui/config_dialogs.py b/lutris/gui/config_dialogs.py index 5b350ec17..b5094b225 100644 --- a/lutris/gui/config_dialogs.py +++ b/lutris/gui/config_dialogs.py @@ -274,7 +274,8 @@ class GameDialogCommon(object): game_sw = self.build_scrolled_window(self.game_box) else: game_sw = Gtk.Label(label=self.no_runner_label) - self.game.runner = None + if self.game: + self.game.runner = None self._add_notebook_tab(game_sw, "Game options") def _build_runner_tab(self, config_level): diff --git a/tests/test_dialogs.py b/tests/test_dialogs.py index b458164e1..c157985e5 100644 --- a/tests/test_dialogs.py +++ b/tests/test_dialogs.py @@ -21,7 +21,7 @@ class TestGameDialogCommon(TestCase): dlg = config_dialogs.GameDialogCommon() list_store = dlg._get_runner_liststore() self.assertTrue( - list_store[1][0].startswith(runners.get_installed()[0].name) + list_store[1][0].startswith(runners.get_installed()[0].human_name) ) self.assertEqual(list_store[1][1], runners.get_installed()[0].name)