Skip to content

Commit

Permalink
[processing] fix python error with OSM vector layers
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Feb 15, 2018
1 parent f8f8770 commit 4aef3b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/wrappers.py
Expand Up @@ -1027,7 +1027,7 @@ def createWidget(self):
return widget

def layerChanged(self, layer):
if not layer or layer.type() != QgsMapLayer.VectorLayer or layer.selectedFeatureCount() == 0:
if layer is not None or layer.type() != QgsMapLayer.VectorLayer or layer.selectedFeatureCount() == 0:
self.use_selection_checkbox.setChecked(False)
self.use_selection_checkbox.setEnabled(False)
else:
Expand Down

0 comments on commit 4aef3b7

Please sign in to comment.