diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-03-22 18:23:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-03-22 18:24:14 +0300 |
commit | d554b8a748004db3542403339a59a62d61c753d9 (patch) | |
tree | 3e4025008f3e774cceecd04df307f861ae458528 /source/blender | |
parent | 161393805f606089959f04b7656bd33b9b91311f (diff) |
UI: skip confirmation menu on quit prompt to save
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/windowmanager/intern/wm_window.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index 2e12ceab5b3..6573ae0f4a1 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -328,6 +328,8 @@ static void wm_block_confirm_quit_save(bContext *C, void *arg_block, void *UNUSE WM_operator_properties_create_ptr(&props_ptr, ot); RNA_boolean_set(&props_ptr, "exit", true); + /* No need for second confirmation popup. */ + RNA_boolean_set(&props_ptr, "check_existing", false); WM_operator_name_call_ptr(C, ot, WM_OP_INVOKE_DEFAULT, &props_ptr); WM_operator_properties_free(&props_ptr); } |