Skip to content
Permalink
Browse files

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

Fixes #18278

(cherry-picked from 4e182be)
  • Loading branch information
nyalldawson committed Mar 1, 2018
1 parent f2638fd commit 4bbea2f70e5f7f9c173f91e2a6671f2eedca979b
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 4bbea2f

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