diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 1feab316010..0c525d6946c 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -1829,9 +1829,7 @@ static int wm_userpref_read_exec(bContext *C, wmOperator *op) NULL); wm_userpref_read_exceptions(&U, &U_backup); - if (use_factory_settings) { - G.f |= G_FLAG_USERPREF_NO_SAVE_ON_EXIT; - } + SET_FLAG_FROM_TEST(G.f, use_factory_settings, G_FLAG_USERPREF_NO_SAVE_ON_EXIT); Main *bmain = CTX_data_main(C); @@ -1960,9 +1958,7 @@ static int wm_homefile_read_exec(bContext *C, wmOperator *op) if (use_userdef) { wm_userpref_read_exceptions(&U, &U_backup); - if (use_factory_settings) { - G.f |= G_FLAG_USERPREF_NO_SAVE_ON_EXIT; - } + SET_FLAG_FROM_TEST(G.f, use_factory_settings, G_FLAG_USERPREF_NO_SAVE_ON_EXIT); } return OPERATOR_FINISHED; |