Skip to content
Permalink
Browse files

[processing] Fix 'selected features' checkbox is incorrectly disabled

Fixes #18278
  • Loading branch information
nyalldawson committed Mar 1, 2018
1 parent a483ef8 commit 4e182be4ece2bd1d300949d0228994472927ca70
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/gui/wrappers.py
@@ -1029,7 +1029,7 @@ def createWidget(self):
return widget

def layerChanged(self, layer):
if layer is not None or layer.type() != QgsMapLayer.VectorLayer or layer.selectedFeatureCount() == 0:
if layer is 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 4e182be

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