Skip to content

Commit

Permalink
[processing] remember last output folder in batch interface
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Nov 21, 2014
1 parent df9372a commit 336fe99
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/plugins/processing/gui/BatchOutputSelectionPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 336fe99

Please sign in to comment.