diff options
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/folder.c | 7 | ||||
-rw-r--r-- | libsylph/mh.c | 4 |
2 files changed, 7 insertions, 4 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); diff --git a/libsylph/mh.c b/libsylph/mh.c index b677f9fc..c90bb117 100644 --- a/libsylph/mh.c +++ b/libsylph/mh.c @@ -1068,9 +1068,9 @@ static FolderItem *mh_create_folder(Folder *folder, FolderItem *parent, g_free(fullpath); + /* path is a logical folder path */ if (parent->path) - path = g_strconcat(parent->path, G_DIR_SEPARATOR_S, name, - NULL); + path = g_strconcat(parent->path, "/", name, NULL); else path = g_strdup(name); new_item = folder_item_new(name, path); |