Skip to content
Permalink
Browse files

Fix feature source widget returns source even when not set

  • Loading branch information
nyalldawson committed Jun 12, 2017
1 parent c52e6a7 commit d8302a26f2225450666e2c7cc65cb0b883e4ade7
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/plugins/processing/gui/wrappers.py
@@ -869,7 +869,10 @@ def value(self):
if layer:
return QgsProcessingFeatureSourceDefinition(layer.id(), use_selected_features)
else:
return QgsProcessingFeatureSourceDefinition(self.combo.currentText(), use_selected_features)
if self.combo.currentText():
return QgsProcessingFeatureSourceDefinition(self.combo.currentText(), use_selected_features)
else:
return None
except:
return QgsProcessingFeatureSourceDefinition(self.combo.currentText(), use_selected_features)
elif self.dialogType == DIALOG_BATCH:

0 comments on commit d8302a2

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