diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-03-14 09:24:19 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-03-14 09:24:19 +0000 |
commit | 590fb309cf9e7f617e829c48eba0a85e65187753 (patch) | |
tree | 2c54b4cecaa3a6588fb9ec075786c2a59c800fdc /libsylph/folder.c | |
parent | 81b9c700d41e4081dd92612dd8101083fdc6690e (diff) |
fixes data format incompatibility of folderlist.xml between Unix and Win32.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1568 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/folder.c')
-rw-r--r-- | libsylph/folder.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libsylph/folder.c b/libsylph/folder.c index 7d0cabd2..7edd391b 100644 --- a/libsylph/folder.c +++ b/libsylph/folder.c @@ -1295,9 +1295,12 @@ static gboolean folder_build_tree(GNode *node, gpointer data) stype = F_VIRTUAL; } else if (!strcmp(attr->name, "name")) name = attr->value; - else if (!strcmp(attr->name, "path")) + else if (!strcmp(attr->name, "path")) { +#ifdef G_OS_WIN32 + subst_char(attr->value, G_DIR_SEPARATOR, '/'); +#endif path = attr->value; - else if (!strcmp(attr->name, "mtime")) + } else if (!strcmp(attr->name, "mtime")) mtime = strtoul(attr->value, NULL, 10); else if (!strcmp(attr->name, "new")) new = atoi(attr->value); |