Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-05-13 10:03:46 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-05-13 10:03:46 +0300
commitadcc81341d7cd2a6212d5ae99d0b08dd494f5d06 (patch)
tree8c67653d0ec5ed7d22c786c00200399579d5ba03 /source
parente8e003ee8bb729c60b7bc195174c4d88fffb01cb (diff)
UI: show an error when a search fails
Useful in cases when making a typo before pressing enter.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/interface/interface_handlers.c3
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();
}
}