Remember expanded paths in GuiConfig

This commit is contained in:
Etoh 2013-10-14 01:08:23 +01:00
parent f45ab70b9f
commit f94d60c837

View File

@ -82,7 +82,15 @@ class ConfigDialog(QtGui.QDialog):
settings.endGroup() settings.endGroup()
foundpath = "" foundpath = ""
if playerpath != None and playerpath != "" and os.path.isfile(playerpath): 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 foundpath = playerpath
self.executablepathCombobox.addItem(foundpath) self.executablepathCombobox.addItem(foundpath)