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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-03-21 16:54:07 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-21 16:55:24 +0300
commite4694c057bcc5200e8bd1e906dc1d687a4f3aca2 (patch)
treeba38075c20a00f6fff32570eca6948e4b5924afc /source/blender/editors/interface/interface_region_menu_popup.c
parent2b21e7ab9a14cfa1d9e42b97d8056c3b0050fcc9 (diff)
UI: replace button open event with activate on init
No user visible change.
Diffstat (limited to 'source/blender/editors/interface/interface_region_menu_popup.c')
-rw-r--r--source/blender/editors/interface/interface_region_menu_popup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_region_menu_popup.c b/source/blender/editors/interface/interface_region_menu_popup.c
index bd8f62e2abd..bda19b712a1 100644
--- a/source/blender/editors/interface/interface_region_menu_popup.c
+++ b/source/blender/editors/interface/interface_region_menu_popup.c
@@ -567,6 +567,7 @@ void UI_popup_block_invoke_ex(bContext *C, uiBlockCreateFunc func, void *arg, co
handle->opcontext = opcontext;
UI_popup_handlers_add(C, &window->modalhandlers, handle, 0);
+ UI_block_active_only_flagged_buttons(C, handle->region, handle->region->uiblocks.first);
WM_event_add_mousemove(C);
}
@@ -594,6 +595,7 @@ void UI_popup_block_ex(
// handle->opcontext = opcontext;
UI_popup_handlers_add(C, &window->modalhandlers, handle, 0);
+ UI_block_active_only_flagged_buttons(C, handle->region, handle->region->uiblocks.first);
WM_event_add_mousemove(C);
}