[Bf-blender-cvs] [d554b8a7480] master: UI: skip confirmation menu on quit prompt to save

Campbell Barton noreply at git.blender.org
Thu Mar 22 16:24:56 CET 2018


Commit: d554b8a748004db3542403339a59a62d61c753d9
Author: Campbell Barton
Date:   Thu Mar 22 16:23:29 2018 +0100
Branches: master
https://developer.blender.org/rBd554b8a748004db3542403339a59a62d61c753d9

UI: skip confirmation menu on quit prompt to save

===================================================================

M	source/blender/windowmanager/intern/wm_window.c

===================================================================

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);
 }



More information about the Bf-blender-cvs mailing list