Fix crash closing window in background mode

This commit is contained in:
Campbell Barton 2017-03-29 19:25:34 +11:00
parent cb6ec44fc7
commit a7ca991841
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ void wm_window_close(bContext *C, wmWindowManager *wm, wmWindow *win)
if (tmpwin == NULL)
do_exit = 1;
if ((U.uiflag & USER_QUIT_PROMPT) && !wm->file_saved) {
if ((U.uiflag & USER_QUIT_PROMPT) && !wm->file_saved && !G.background) {
if (do_exit) {
if (!GHOST_confirmQuit(win->ghostwin))
return;