diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-01-17 11:14:06 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-01-17 11:14:06 +0000 |
commit | 3fec59fac205ff4588f8afe93b28943b31f9ab8d (patch) | |
tree | 0687e8a4cc948efdbcf2a480beb9381a03382e85 /src/folder.c | |
parent | f0325b36e30c81266a5e6f750553be6bc6e8fe33 (diff) |
automatically take over older config files.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@13 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/folder.c')
-rw-r--r-- | src/folder.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/folder.c b/src/folder.c index 08800e53..93e8b334 100644 --- a/src/folder.c +++ b/src/folder.c @@ -339,7 +339,14 @@ gint folder_read_list(void) gchar *path; path = folder_get_list_path(); - if (!is_file_exist(path)) return -1; + if (!is_file_exist(path)) { + debug_print("reading older version of folderlist.xml ...\n"); + path = g_strconcat(get_old_rc_dir(), G_DIR_SEPARATOR_S, + FOLDER_LIST, NULL); + AUTORELEASE_STR(path, return -1); + if (!is_file_exist(path)) + return -1; + } node = xml_parse_file(path); if (!node) return -1; |