Skip to content
Permalink
Browse files

[in-place] Fix locator filter for in-place when active layer changes

Invalidate the locator results when active layer changes

Fix #20099 - Locator bar does not update the filter of algorithms according to active layer when using "ef"
  • Loading branch information
elpaso committed Oct 23, 2018
1 parent daf5394 commit 7ecd303acca1b6ef14b4e8ee891f87c7ce99017e
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 7ecd303

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