From da1350acdcb4c335b0082864a8ba16d216544a1e Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 20 Mar 2019 19:26:54 +0100 Subject: Fix T60815: drag & drop crash when search menu is opened immediately after. Patch by matc, some further refactoring by me. Differential Revision: https://developer.blender.org/D4250 --- source/blender/editors/space_node/node_select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_node') diff --git a/source/blender/editors/space_node/node_select.c b/source/blender/editors/space_node/node_select.c index fae5f7b3f20..aed5c590bb4 100644 --- a/source/blender/editors/space_node/node_select.c +++ b/source/blender/editors/space_node/node_select.c @@ -1081,7 +1081,7 @@ static uiBlock *node_find_menu(bContext *C, ARegion *ar, void *arg_op) UI_block_theme_style_set(block, UI_BLOCK_THEME_STYLE_POPUP); but = uiDefSearchBut(block, search, 0, ICON_VIEWZOOM, sizeof(search), 10, 10, 9 * UI_UNIT_X, UI_UNIT_Y, 0, 0, ""); - UI_but_func_search_set(but, NULL, node_find_cb, op->type, node_find_call_cb, NULL); + UI_but_func_search_set(but, NULL, node_find_cb, op->type, false, node_find_call_cb, NULL); /* fake button, it holds space for search items */ uiDefBut(block, UI_BTYPE_LABEL, 0, "", 10, 10 - UI_searchbox_size_y(), UI_searchbox_size_x(), UI_searchbox_size_y(), NULL, 0, 0, 0, 0, NULL); -- cgit v1.2.3