diff --git a/lutris/gui/config_boxes.py b/lutris/gui/config_boxes.py index c3a1ea43e..30fa286c1 100644 --- a/lutris/gui/config_boxes.py +++ b/lutris/gui/config_boxes.py @@ -207,8 +207,7 @@ class ConfigBox(Gtk.VBox): if path: # If path is relative, complete with game dir if not os.path.isabs(path): - game = Game(self.game) - path = os.path.join(game.directory, path) + path = os.path.join(self.game.directory, path) file_chooser.unselect_all() file_chooser.select_filename(path) hbox.pack_start(Label(label), False, False, 20) diff --git a/lutris/gui/lutriswindow.py b/lutris/gui/lutriswindow.py index 9e2b04f66..8307e33d1 100644 --- a/lutris/gui/lutriswindow.py +++ b/lutris/gui/lutriswindow.py @@ -373,7 +373,6 @@ class LutrisWindow(object): """Edit game preferences.""" game = Game(self.view.selected_game) if game.is_installed: - game = Game(self.view.selected_game) EditGameConfigDialog(self, game) def on_viewmenu_toggled(self, menuitem):