Fixes #85 : Broken support for relative path on main file / exe

This commit is contained in:
Xodetaetl
2014-08-22 05:08:59 +02:00
parent a84f87227c
commit 95ac1dfdf7
2 changed files with 1 additions and 3 deletions

View File

@@ -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)

View File

@@ -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):