Skip to content
Permalink
Browse files

[processing] remember last output folder in batch interface

  • Loading branch information
volaya committed Nov 21, 2014
1 parent df9372a commit 336fe99af1875667a95f2f25620d3286a217333b
Showing with 7 additions and 1 deletion.
  1. +7 −1 python/plugins/processing/gui/BatchOutputSelectionPanel.py
@@ -66,10 +66,16 @@ def __init__(self, output, alg, row, col, panel):

def showSelectionDialog(self):
filefilter = self.output.getFileFilter(self.alg)
filename = QFileDialog.getSaveFileName(self, self.tr('Save file'), '',
settings = QSettings()
if settings.contains('/Processing/LastBatchOutputPath'):
path = unicode(settings.value('/Processing/LastBatchOutputPath'))
else:
path = ''
filename = QFileDialog.getSaveFileName(self, self.tr('Save file'), path,
filefilter)
if filename:
filename = unicode(filename)
settings.setValue('/Processing/LastBatchOutputPath', os.path.dirname(filename))
dlg = AutofillDialog(self.alg)
dlg.exec_()
if dlg.mode is not None:

0 comments on commit 336fe99

Please sign in to comment.
You can’t perform that action at this time.