aboutsummaryrefslogtreecommitdiff
path: root/src/folder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/folder.c')
-rw-r--r--src/folder.c9
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;