Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_window.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| */ | */ | ||||
| void wm_quit_with_optional_confirmation_prompt(bContext *C, wmWindow *win) | void wm_quit_with_optional_confirmation_prompt(bContext *C, wmWindow *win) | ||||
| { | { | ||||
| wmWindow *win_ctx = CTX_wm_window(C); | wmWindow *win_ctx = CTX_wm_window(C); | ||||
| /* The popup will be displayed in the context window which may not be set | /* The popup will be displayed in the context window which may not be set | ||||
| * here (this function gets called outside of normal event handling loop). */ | * here (this function gets called outside of normal event handling loop). */ | ||||
| CTX_wm_window_set(C, win); | CTX_wm_window_set(C, win); | ||||
| wm_window_raise(win); | |||||
| if (U.uiflag & USER_SAVE_PROMPT) { | if (U.uiflag & USER_SAVE_PROMPT) { | ||||
| if (wm_file_or_image_is_modified(C) && !G.background) { | if (wm_file_or_image_is_modified(C) && !G.background) { | ||||
| wm_confirm_quit(C); | wm_confirm_quit(C); | ||||
| } | } | ||||
| else { | else { | ||||
| wm_exit_schedule_delayed(C); | wm_exit_schedule_delayed(C); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||