Skip to content

Commit

Permalink
Fixes blocking if the edit in place functionality is used in the loca…
Browse files Browse the repository at this point in the history
…tor bar (with ef) on an non-modifiable layer

Fixes #19950
  • Loading branch information
elpaso committed Sep 26, 2018
1 parent 5047571 commit 5157406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/AlgorithmLocatorFilter.py
Expand Up @@ -136,7 +136,7 @@ def fetchResults(self, string, context, feedback):
# collect results in main thread, since this method is inexpensive and
# accessing the processing registry/current layer is not thread safe

if iface.activeLayer() is None or iface.activeLayer().type() != QgsMapLayer.VectorLayer or not iface.activeLayer().selectedFeatureCount():
if iface.activeLayer() is None or iface.activeLayer().type() != QgsMapLayer.VectorLayer or not iface.activeLayer().selectedFeatureCount() or not iface.activeLayer().isEditable():
return

for a in QgsApplication.processingRegistry().algorithms():
Expand Down

0 comments on commit 5157406

Please sign in to comment.