Skip to content

Commit

Permalink
Merge pull request #8284 from elpaso/bugfix-20099-locator-inplace
Browse files Browse the repository at this point in the history
[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 d76ae43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/ProcessingPlugin.py
Expand Up @@ -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()
Expand Down

0 comments on commit d76ae43

Please sign in to comment.