diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-20 21:26:54 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-20 21:50:21 +0300 |
commit | da1350acdcb4c335b0082864a8ba16d216544a1e (patch) | |
tree | 661bb9014228a631f08554b4df1dfa2ec2277fd2 /source/blender/editors/space_node | |
parent | 6500b31728d870506207d9d70837b171cbef32ea (diff) |
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
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r-- | source/blender/editors/space_node/node_select.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |