Fix crash closing window in background mode
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user