Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_handlers.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 3,402 Lines • ▼ Show 20 Lines | if (UI_but_is_utf8(but)) { | ||||
| if (strip) { | if (strip) { | ||||
| /* wont happen often so isn't that annoying to keep it here for a while */ | /* wont happen often so isn't that annoying to keep it here for a while */ | ||||
| printf("%s: invalid utf8 - stripped chars %d\n", __func__, strip); | printf("%s: invalid utf8 - stripped chars %d\n", __func__, strip); | ||||
| } | } | ||||
| } | } | ||||
| if (data->searchbox) { | if (data->searchbox) { | ||||
| if (data->cancel == false) { | if (data->cancel == false) { | ||||
| BLI_assert(but->type == UI_BTYPE_SEARCH_MENU); | |||||
| uiButSearch *but_search = (uiButSearch *)but; | |||||
| if ((ui_searchbox_apply(but, data->searchbox) == false) && | if ((ui_searchbox_apply(but, data->searchbox) == false) && | ||||
| (ui_searchbox_find_index(data->searchbox, but->editstr) == -1)) { | (ui_searchbox_find_index(data->searchbox, but->editstr) == -1) && | ||||
| !but_search->results_are_suggestions) { | |||||
| data->cancel = true; | data->cancel = true; | ||||
| /* ensure menu (popup) too is closed! */ | /* ensure menu (popup) too is closed! */ | ||||
| data->escapecancel = true; | data->escapecancel = true; | ||||
| WM_reportf(RPT_ERROR, "Failed to find '%s'", but->editstr); | WM_reportf(RPT_ERROR, "Failed to find '%s'", but->editstr); | ||||
| WM_report_banner_show(); | WM_report_banner_show(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 7,721 Lines • Show Last 20 Lines | |||||