diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-07-11 13:06:21 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-07-11 13:06:21 +0300 |
commit | 3c4f6399d987fb3f832ba3c1ca0fea9426d6d7f5 (patch) | |
tree | a46823d5719397a114bd7d98ad832100ece88a54 /source/blender/windowmanager/intern/wm_files.c | |
parent | a7ac40888f530c12f137b3f6249b6f1dcfae3ea3 (diff) |
Fix T66628: "Auto Saved Modified Image" not working
Reviewer: brecht
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 49b13da6b21..ef957fa03c5 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -2949,7 +2949,12 @@ static void wm_block_file_close_save(bContext *C, void *arg_block, void *arg_dat UI_popup_block_close(C, win, arg_block); if (save_images_when_file_is_closed) { - if (!ED_image_should_save_modified(C)) { + if (ED_image_should_save_modified(C)) { + ReportList *reports = CTX_wm_reports(C); + ED_image_save_all_modified(C, reports); + WM_report_banner_show(); + } + else { execute_callback = false; } } |