diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-05-13 10:03:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-05-13 10:03:46 +0300 |
commit | adcc81341d7cd2a6212d5ae99d0b08dd494f5d06 (patch) | |
tree | 8c67653d0ec5ed7d22c786c00200399579d5ba03 /source/blender/editors/interface/interface_handlers.c | |
parent | e8e003ee8bb729c60b7bc195174c4d88fffb01cb (diff) |
UI: show an error when a search fails
Useful in cases when making a typo before pressing enter.
Diffstat (limited to 'source/blender/editors/interface/interface_handlers.c')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index ead36fdbd19..d5e5155b187 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -3357,6 +3357,9 @@ static void ui_textedit_end(bContext *C, uiBut *but, uiHandleButtonData *data) /* ensure menu (popup) too is closed! */ data->escapecancel = true; + + WM_reportf(RPT_ERROR, "Failed to find '%s'", but->editstr); + WM_report_banner_show(); } } |