Skip to content
Permalink
Browse files
[processing] remove extra quotes when loading batch process from file
(fix #16309)
  • Loading branch information
alexbruy committed May 13, 2017
1 parent bc4e70a commit 43595f5d0afb375da0d10dd9be337603a2f6aa61
Showing with 4 additions and 2 deletions.
  1. +4 −2 python/plugins/processing/gui/BatchPanel.py
@@ -201,7 +201,7 @@ def load(self):
continue
widget = self.tblParameters.cellWidget(row, column)
if param.name in params:
value = params[param.name]
value = params[param.name].strip('"')
self.setValueInWidget(widget, value)
column += 1

@@ -210,7 +210,7 @@ def load(self):
continue
widget = self.tblParameters.cellWidget(row, column)
if out.name in outputs:
value = outputs[out.name]
value = outputs[out.name].strip('"')
self.setValueInWidget(widget, value)
column += 1
except TypeError:
@@ -257,6 +257,7 @@ def save(self):
return
algParams[param.name] = param.getValueAsCommandLineParameter()
col += 1

col = 0
for param in alg.parameters:
if param.hidden:
@@ -269,6 +270,7 @@ def save(self):
return
algParams[param.name] = unicode(param.value)
col += 1

for out in alg.outputs:
if out.hidden:
continue

0 comments on commit 43595f5

Please sign in to comment.