From 95ac1dfdf702f7d8a9a204b91f741041dddfecb7 Mon Sep 17 00:00:00 2001 From: Xodetaetl Date: Fri, 22 Aug 2014 05:08:59 +0200 Subject: [PATCH] Fixes #85 : Broken support for relative path on main file / exe --- lutris/gui/config_boxes.py | 3 +-- lutris/gui/lutriswindow.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) 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):