diff options
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); |