Skip to content
Permalink
Browse files

[processing] fix error when adding refactor fields alg in empty model

(fixes #17421)
  • Loading branch information
nirvn committed Nov 24, 2017
1 parent c2b3ac5 commit 97f749e6b41338da0e1ee508e2634f5760be966c
@@ -477,7 +477,8 @@ def createWidget(self):
def postInitialize(self, wrappers):
for wrapper in wrappers:
if wrapper.param.name() == self.param.parentLayerParameter():
self.setLayer(wrapper.value())
if wrapper.value():
self.setLayer(wrapper.value())
wrapper.widgetValueHasChanged.connect(self.parentLayerChanged)
break

@@ -999,7 +999,10 @@ def validator(v):
else:
return os.path.exists(v)

return self.comboValue(validator, combobox=self.combo)
if self.combo.currentText():
return self.comboValue(validator, combobox=self.combo)
else:
return None


class StringWidgetWrapper(WidgetWrapper):

0 comments on commit 97f749e

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