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)
|
if (tmpwin == NULL)
|
||||||
do_exit = 1;
|
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 (do_exit) {
|
||||||
if (!GHOST_confirmQuit(win->ghostwin))
|
if (!GHOST_confirmQuit(win->ghostwin))
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user