From fbeb69f5cd86bd6e9bca6e82a1ba15d53f0869c1 Mon Sep 17 00:00:00 2001 From: Etoh Date: Mon, 14 Oct 2013 02:09:12 +0100 Subject: [PATCH] (Do not) Remember expanded paths in GuiConfig [Rollback] --- syncplay/ui/GuiConfiguration.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/syncplay/ui/GuiConfiguration.py b/syncplay/ui/GuiConfiguration.py index f51bc3d..9bda1dc 100644 --- a/syncplay/ui/GuiConfiguration.py +++ b/syncplay/ui/GuiConfiguration.py @@ -81,18 +81,10 @@ class ConfigDialog(QtGui.QDialog): playerpathlist = list(set([os.path.normcase(path) for path in set(playerpathlist + savedPlayers)])) settings.endGroup() foundpath = "" - - if playerpath != None and playerpath != "": - if not os.path.isfile(playerpath): - from syncplay.players.playerFactory import PlayerFactory - self._playerFactory = PlayerFactory() - expandedpath = self._playerFactory.getPlayerByPath(playerpath).getExpandedPath(playerpath) - if os.path.isfile(expandedpath): - playerpath = expandedpath - - if os.path.isfile(playerpath): - foundpath = playerpath - self.executablepathCombobox.addItem(foundpath) + + if playerpath != None and playerpath != "" and os.path.isfile(playerpath): + foundpath = playerpath + self.executablepathCombobox.addItem(foundpath) for path in playerpathlist: if(os.path.isfile(path) and os.path.normcase(path) != os.path.normcase(foundpath)):