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:
authorAndrea Weikert <elubie@gmx.net>2011-01-05 17:56:10 +0300
committerAndrea Weikert <elubie@gmx.net>2011-01-05 17:56:10 +0300
commita45183125a0ff6438b2b8a58374dcb6207064a8a (patch)
tree183f665e90dd79ddd644fd7533119fd6e57bc7e6 /source/blender/windowmanager
parent978bc0d8ace0ea10339afb25b50ef396e9cc1c8d (diff)
Patch: [#22524] Update Windows Recent Documents on Open/Save
Slightly modified to better fit in architecture (moved to related GHOST SystemPaths) Thanks to Harley Acheson for the research and for providing the original patch. Note: I added empty function for X11(Linux) and Mac (Carbon and Cocoa) to be implemented still.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index b5601f60bee..e7165598e38 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -91,6 +91,7 @@
#include "ED_util.h"
#include "GHOST_C-api.h"
+#include "GHOST_Path-api.h"
#include "UI_interface.h"
@@ -511,6 +512,9 @@ static void write_history(void)
}
fclose(fp);
}
+
+ /* also update most recent files on System */
+ GHOST_addToSystemRecentFiles(G.main->name);
}
}