Skip to content

Commit

Permalink
[processing] Fix 'selected features' checkbox is incorrectly disabled
Browse files Browse the repository at this point in the history
Fixes #18278
  • Loading branch information
nyalldawson committed Mar 1, 2018
1 parent a483ef8 commit 4e182be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/wrappers.py
Expand Up @@ -1029,7 +1029,7 @@ def createWidget(self):
return widget return widget


def layerChanged(self, layer): 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.setChecked(False)
self.use_selection_checkbox.setEnabled(False) self.use_selection_checkbox.setEnabled(False)
else: else:
Expand Down

0 comments on commit 4e182be

Please sign in to comment.