From ee64b595da5ed5b40b91e181bdbb179131d9ae0d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 10 Jun 2020 01:07:49 +1000 Subject: Fix T77504: Operator search gives wrong results Regression in e8ab0137f8766 --- source/blender/editors/space_file/file_ops.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/editors/space_file/file_ops.c') diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index 41d32fda088..6552dfc18f3 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -2726,7 +2726,11 @@ static int file_start_filter_exec(bContext *C, wmOperator *UNUSED(op)) ARegion *region = BKE_area_find_region_type(area, RGN_TYPE_UI); SpaceFile *sf = CTX_wm_space_file(C); + ARegion *region_ctx = CTX_wm_region(C); + CTX_wm_region_set(C, region); UI_textbutton_activate_rna(C, region, sf->params, "filter_search"); + CTX_wm_region_set(C, region_ctx); + return OPERATOR_FINISHED; } -- cgit v1.2.3