RSSyl: Just copy all of the custom folderlist xml tags in copy_private_data via folde...
authorAndrej Kacian <ticho@claws-mail.org>
Sun, 12 Oct 2014 20:09:46 +0000 (22:09 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Sun, 12 Oct 2014 20:09:46 +0000 (22:09 +0200)
src/plugins/rssyl/rssyl.c

index c87fde9..ff4a356 100644 (file)
@@ -807,22 +807,13 @@ static gboolean rssyl_subscribe_uri(Folder *folder, const gchar *uri)
 static void rssyl_copy_private_data(Folder *folder, FolderItem *oldi,
                FolderItem *newi)
 {
-       RFolderItem *olditem = (RFolderItem *)oldi,
-                                                                       *newitem = (RFolderItem *)newi;
-
        g_return_if_fail(folder != NULL);
-       g_return_if_fail(olditem != NULL);
-       g_return_if_fail(newitem != NULL);
+       g_return_if_fail(oldi != NULL);
+       g_return_if_fail(newi != NULL);
 
-       if( olditem->url != NULL ) {
-               g_free(newitem->url);
-               newitem->url = g_strdup(olditem->url);
-       }
+       rssyl_item_set_xml(newi->folder, newi,
+                       rssyl_item_get_xml(folder, oldi));
 
-       if( olditem->official_title != NULL ) {
-               g_free(newitem->official_title);
-               newitem->official_title = g_strdup(olditem->official_title);
-       }
 }
 
 /************************************************************************/