diff options
-rw-r--r-- | source/creator/creator.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 15406485c7f..23a32af4dd0 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -1241,7 +1241,14 @@ static int load_file(int UNUSED(argc), const char **argv, void *data) CTX_wm_manager_set(C, NULL); /* remove wm to force check */ WM_check(C); - G.relbase_valid = 1; + if (bmain->name[0]) { + G.save_over = 1; + G.relbase_valid = 1; + } + else { + G.save_over = 0; + G.relbase_valid = 0; + } if (CTX_wm_manager(C) == NULL) CTX_wm_manager_set(C, wm); /* reset wm */ /* WM_file_read would call normally */ |