diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-05-08 00:35:38 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-05-08 00:36:43 +0400 |
commit | d964bad67b37b64746d42ca01c03f4e404008dde (patch) | |
tree | aaa37f314d176739583bb938aeb0dae3bce6b702 /source/blender/windowmanager/intern/wm_files.c | |
parent | 65d54f34b13ddd815fdffad85b3e3e0ab542c0b1 (diff) |
Fix for crash when userprefs fails to read.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 997bb12d711..1ec2e6a3ee0 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -603,7 +603,7 @@ int wm_homefile_read(bContext *C, ReportList *reports, bool from_memory, const c /* check new prefs only after startup.blend was finished */ if (!from_memory && BLI_exists(prefstr)) { int done = BKE_read_file_userdef(prefstr, NULL); - if (done) { + if (done != BKE_READ_FILE_FAIL) { read_userdef_from_memory = false; printf("Read new prefs: %s\n", prefstr); } |