Skip to content

Commit 43595f5

Browse files
committed
[processing] remove extra quotes when loading batch process from file
(fix #16309)
1 parent bc4e70a commit 43595f5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python/plugins/processing/gui/BatchPanel.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def load(self):
201201
continue
202202
widget = self.tblParameters.cellWidget(row, column)
203203
if param.name in params:
204-
value = params[param.name]
204+
value = params[param.name].strip('"')
205205
self.setValueInWidget(widget, value)
206206
column += 1
207207

@@ -210,7 +210,7 @@ def load(self):
210210
continue
211211
widget = self.tblParameters.cellWidget(row, column)
212212
if out.name in outputs:
213-
value = outputs[out.name]
213+
value = outputs[out.name].strip('"')
214214
self.setValueInWidget(widget, value)
215215
column += 1
216216
except TypeError:
@@ -257,6 +257,7 @@ def save(self):
257257
return
258258
algParams[param.name] = param.getValueAsCommandLineParameter()
259259
col += 1
260+
260261
col = 0
261262
for param in alg.parameters:
262263
if param.hidden:
@@ -269,6 +270,7 @@ def save(self):
269270
return
270271
algParams[param.name] = unicode(param.value)
271272
col += 1
273+
272274
for out in alg.outputs:
273275
if out.hidden:
274276
continue

0 commit comments

Comments
 (0)