Skip to content

Commit 8dc19eb

Browse files
committed
Clear active_plan_id in clear_all_filters()
1 parent 54e23b8 commit 8dc19eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arho_feature_template/core/plan_manager.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ def load_land_use_plan(self):
9797
update_selected_plan(plan)
9898

9999
def clear_all_filters(self):
100-
"""Clear filters for all vector layers in the project."""
100+
"""Clear active_plan_id and filters for all vector layers in the project."""
101+
QgsExpressionContextUtils.setProjectVariable(QgsProject.instance(), "active_plan_id", None)
101102
for layer in QgsProject.instance().mapLayers().values():
102103
if isinstance(layer, QgsVectorLayer):
103104
layer.setSubsetString("")

0 commit comments

Comments
 (0)