diff options
Diffstat (limited to 'src/project.c')
-rw-r--r-- | src/project.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/project.c b/src/project.c index 245bac4..9763e2d 100644 --- a/src/project.c +++ b/src/project.c @@ -29,6 +29,7 @@ #include <string.h> +#include "params.h" #include "common/xml.h" #include "gtkext/easygtk.h" #include "gtkext/gtkblockview.h" @@ -661,6 +662,8 @@ void push_project_into_recent_list(const GStudyProject *project) if (project->filename == NULL) return; + /* Constitution de la liste des projets récents */ + manager = get_projects_manager(); qualified = (char *)calloc(strlen("file://") + strlen(project->filename) + 1, sizeof(char)); @@ -678,4 +681,8 @@ void push_project_into_recent_list(const GStudyProject *project) free(qualified); + /* Pour la prochaine ouverture du programme... */ + + set_string_config_value(get_main_configuration(), MPT_LAST_PROJECT, project->filename); + } |