Fix parsing logic in RSSyl OPML import.
authorAndrej Kacian <ticho@claws-mail.org>
Sat, 9 Apr 2016 08:57:48 +0000 (10:57 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Sat, 9 Apr 2016 08:57:48 +0000 (10:57 +0200)
Possibly closes bug #3623.

src/plugins/rssyl/rssyl_cb_menu.c

index 476d2bc73943798e59fbb88e79d9898aa2c7ef8b..3abf54d3083056bd389c836254d64c996b332682 100644 (file)
@@ -365,7 +365,7 @@ void rssyl_import_feed_list_cb(GtkAction *action, gpointer data)
        /* This needs to be +2, since we will be comparing it to depth of
         * <outline> tag in OPML's XML structure. Topmost outlines are under
         * <opml> and <body>, hence 2. */
-       ctx->depth = rssyl_folder_depth(item) + 2;
+       ctx->depth = rssyl_folder_depth(item) + 1;
        ctx->current = NULL;
        ctx->current = g_slist_append(ctx->current, item);