diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-28 05:09:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-28 05:09:56 +0300 |
commit | d7baf8e7e7c26bbd577abe5d71a0da2e796cb6ae (patch) | |
tree | c62a64dab30161fbfbaf5f98b1c9c20fabfb09c8 /source/blender/windowmanager/intern/wm_operators.c | |
parent | 3d4d7b97c27e3ff2820ddf210736ca90cae05f85 (diff) |
UI: change behavior for quit prompt
Remove confirmation popup menu, just exit.
Note that this option is mainly for developers or people reviewing
blend files, see D4406 for discussion on reason for keeping this feature
while simplifying how it works.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_operators.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index bafcdbf2139..55c257038ad 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -1804,18 +1804,19 @@ static void WM_OT_window_fullscreen_toggle(wmOperatorType *ot) static int wm_exit_blender_exec(bContext *C, wmOperator *UNUSED(op)) { - wm_quit_with_optional_confirmation_prompt(C, CTX_wm_window(C)); + wm_exit_schedule_delayed(C); return OPERATOR_FINISHED; } -static int wm_exit_blender_invoke(bContext *C, wmOperator *op, const wmEvent *event) +static int wm_exit_blender_invoke(bContext *C, wmOperator *UNUSED(op), const wmEvent *UNUSED(event)) { if (U.uiflag & USER_QUIT_PROMPT) { - return wm_exit_blender_exec(C, op); + wm_quit_with_optional_confirmation_prompt(C, CTX_wm_window(C)); } else { - return WM_operator_confirm(C, op, event); + wm_exit_schedule_delayed(C); } + return OPERATOR_FINISHED; } static void WM_OT_quit_blender(wmOperatorType *ot) |