Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/blender/windowmanager/intern/wm_files.c8
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;