Skip to content

Commit

Permalink
Fix feature source widget returns source even when not set
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 12, 2017
1 parent c52e6a7 commit d8302a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/plugins/processing/gui/wrappers.py
Expand Up @@ -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:
Expand Down

0 comments on commit d8302a2

Please sign in to comment.