Skip to content
Permalink
Browse files

Merge pull request #8284 from elpaso/bugfix-20099-locator-inplace

[in-place] Fix locator filter for in-place when active layer changes
  • Loading branch information
elpaso committed Oct 24, 2018
2 parents ceaaade + 7ecd303 commit d76ae43fd1fcb4c90a3ac89b786b6ec0d000e7df
Showing with 2 additions and 0 deletions.
  1. +2 −0 python/plugins/processing/ProcessingPlugin.py
@@ -171,6 +171,8 @@ def __init__(self, iface):
QgsApplication.dataItemProviderRegistry().addProvider(self.item_provider)
self.locator_filter = AlgorithmLocatorFilter()
iface.registerLocatorFilter(self.locator_filter)
# Invalidate the locator filter for in-place when active layer changes
iface.currentLayerChanged.connect(lambda _: self.iface.invalidateLocatorResults())
self.edit_features_locator_filter = InPlaceAlgorithmLocatorFilter()
iface.registerLocatorFilter(self.edit_features_locator_filter)
Processing.initialize()

0 comments on commit d76ae43

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