From a45183125a0ff6438b2b8a58374dcb6207064a8a Mon Sep 17 00:00:00 2001 From: Andrea Weikert Date: Wed, 5 Jan 2011 14:56:10 +0000 Subject: 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. --- source/blender/windowmanager/intern/wm_files.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/windowmanager') 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); } } -- cgit v1.2.3