Skip to content

Commit

Permalink
[processing] remove extra quotes when loading batch process from file
Browse files Browse the repository at this point in the history
(fix #16309)
  • Loading branch information
alexbruy committed May 13, 2017
1 parent bc4e70a commit 43595f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/plugins/processing/gui/BatchPanel.py
Expand Up @@ -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

Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 43595f5

Please sign in to comment.