Skip to content
Permalink
Browse files

[processing] fix python error with OSM vector layers

  • Loading branch information
nirvn committed Feb 15, 2018
1 parent f8f8770 commit 4aef3b719f5ab605a3aeede47e8cab62101012cd
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/gui/wrappers.py
@@ -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:

0 comments on commit 4aef3b7

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