Skip to content

Commit

Permalink
[processing] Avoid python error after script execution
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 6, 2017
1 parent 96472c0 commit 6ed0d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/ParametersPanel.py
Expand Up @@ -116,7 +116,7 @@ def layerAdded(self, layer):
if isinstance(param, ParameterVector):
if dataobjects.canUseVectorLayer(layer, param.shapetype):
widget = self.valueItems[param.name]
if isinstance(widget, InputLayerSelectorPanel):
if isinstance(widget, InputLayerSelectorPanel) and hasattr(widget.cmbText, 'addItem'):
widget = widget.cmbText
widget.addItem(self.getExtendedLayerName(layer), layer)
elif layer.type() == QgsMapLayer.RasterLayer and dataobjects.canUseRasterLayer(layer):
Expand Down

0 comments on commit 6ed0d27

Please sign in to comment.