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:
authorCampbell Barton <ideasman42@gmail.com>2013-03-28 06:29:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-28 06:29:10 +0400
commit0237e7eef2322a2b34d7a66130023c03bc8a217e (patch)
tree72977c5815926c3220db56122dd8f4ae9377bef2 /release/scripts/startup/bl_operators/wm.py
parenteab20832d9acaf2c5e7e5a968bc5bbf6e95c2ad2 (diff)
fix for loosing recent-files when running 'Copy Previous Settings'.
Diffstat (limited to 'release/scripts/startup/bl_operators/wm.py')
-rw-r--r--release/scripts/startup/bl_operators/wm.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index a7085e51bd3..bb17f5979be 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -1273,11 +1273,15 @@ class WM_OT_copy_prev_settings(Operator):
else:
shutil.copytree(path_src, path_dst, symlinks=True)
+ # reload recent-files.txt
+ bpy.ops.wm.read_history()
+
# don't loose users work if they open the splash later.
if bpy.data.is_saved is bpy.data.is_dirty is False:
bpy.ops.wm.read_homefile()
else:
self.report({'INFO'}, "Reload Start-Up file to restore settings")
+
return {'FINISHED'}
return {'CANCELLED'}