diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-27 16:54:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-27 16:54:55 +0300 |
commit | 57de9581e8fa359d11581e6acdfad764d14bd93c (patch) | |
tree | 4904995c6e0f25f7dda9e00311cd016d7137783b /source/blender/windowmanager/intern | |
parent | 27b73f0c5b8ba23e069abf107716929f106969b8 (diff) |
UI: use active-default button flag for operator confirmation
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 0b306406054..6e5f83eba47 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -1149,6 +1149,7 @@ static uiBlock *wm_block_dialog_create(bContext *C, ARegion *ar, void *userData) col_block = uiLayoutGetBlock(col); /* Create OK button, the callback of which will execute op */ btn = uiDefBut(col_block, UI_BTYPE_BUT, 0, IFACE_("OK"), 0, -30, 0, UI_UNIT_Y, NULL, 0, 0, 0, 0, ""); + UI_but_flag_enable(btn, UI_BUT_ACTIVE_DEFAULT); UI_but_func_set(btn, dialog_exec_cb, data, col_block); } |