Skip to content

Commit

Permalink
fix #8131
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 22, 2013
1 parent 6421cfd commit 13a86e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/sextante/gui/FileSelectionPanel.py
Expand Up @@ -58,14 +58,14 @@ def showSelectionDialog(self):
path = ""

if self.isFolder:
folder = QtGui.QFileDialog.getExistingDirectory (self, "Select folder", path)
folder = QtGui.QFileDialog.getExistingDirectory(self, "Select folder", path)
if folder:
self.text.setText(str(folder))
settings.setValue("/SextanteQGIS/LastInputPath", os.path.dirname(unicode(folder)))
else:
filenames = QtGui.QFileDialog.getOpenFileNames(self, "Open file", path, "*.*")
if filenames:
self.text.setText(str(filenames.join(";")))
self.text.setText(u";".join(filenames))
settings.setValue("/SextanteQGIS/LastInputPath", os.path.dirname(unicode(filenames[0])))

def getValue(self):
Expand All @@ -75,4 +75,4 @@ def getValue(self):
return s

def setText(self, text):
self.text.setText(text)
self.text.setText(text)

0 comments on commit 13a86e6

Please sign in to comment.