diff options
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_regions.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c index 2af1f5c3322..291a9eb984f 100644 --- a/source/blender/editors/interface/interface_regions.c +++ b/source/blender/editors/interface/interface_regions.c @@ -815,8 +815,10 @@ static void ui_searchbox_select(bContext *C, ARegion *ar, uiBut *but, int step) data->active = 0; ui_searchbox_update(C, ar, but, false); } - else if (data->active < -1) - data->active = -1; + else { + /* only let users step into an 'unset' state for unlink buttons */ + data->active = (but->type == SEARCH_MENU_UNLINK) ? -1 : 0; + } } ED_region_tag_redraw(ar); |