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 /source/blender/windowmanager/intern/wm_files.c
parenteab20832d9acaf2c5e7e5a968bc5bbf6e95c2ad2 (diff)
fix for loosing recent-files when running 'Copy Previous Settings'.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 7152adb4a11..9cb46632198 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -602,6 +602,13 @@ int wm_homefile_read(bContext *C, ReportList *UNUSED(reports), short from_memory
return TRUE;
}
+int wm_history_read_exec(bContext *UNUSED(C), wmOperator *UNUSED(op))
+{
+ /* TODO, read bookmarks */
+ wm_read_history();
+ return OPERATOR_FINISHED;
+}
+
int wm_homefile_read_exec(bContext *C, wmOperator *op)
{
int from_memory = strcmp(op->type->idname, "WM_OT_read_factory_settings") == 0;
@@ -637,7 +644,6 @@ void wm_read_history(void)
}
BLI_file_free_lines(lines);
-
}
static void write_history(void)