diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-07-23 15:32:32 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-07-24 17:17:52 +0300 |
commit | b5a6635f3715bdc749a9171695d91a68740d61a3 (patch) | |
tree | c398c4b42720a14ea43af4047370713ad7da2ef0 | |
parent | 804f467a00b13da6e8f2969cb3778863780ad4f3 (diff) |
Fix T67334: Blender does not exit after saving
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 48b09b0d329..fd3e7a2d3fc 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -2956,7 +2956,8 @@ static void wm_block_file_close_save(bContext *C, void *arg_block, void *arg_dat wmWindow *win = CTX_wm_window(C); UI_popup_block_close(C, win, arg_block); - if (save_images_when_file_is_closed) { + int modified_images_count = ED_image_save_all_modified_info(C, NULL); + if (modified_images_count > 0 && save_images_when_file_is_closed) { if (ED_image_should_save_modified(C)) { ReportList *reports = CTX_wm_reports(C); ED_image_save_all_modified(C, reports); |