projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c6dc3e2
)
Revert "RSSyl: Just copy all of the custom folderlist xml tags in copy_private_data...
author
Andrej Kacian
<ticho@claws-mail.org>
Sat, 18 Oct 2014 11:18:17 +0000
(13:18 +0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Sat, 18 Oct 2014 11:58:03 +0000
(13:58 +0200)
This reverts commit
dc8728ee3222dbe49cdac81e6dc72b2ba206a046
.
src/plugins/rssyl/rssyl.c
patch
|
blob
|
history
diff --git
a/src/plugins/rssyl/rssyl.c
b/src/plugins/rssyl/rssyl.c
index ff4a35615a21e2afdfbafa7581b1c072cf84389d..c87fde95f137bf15d1ad225fe62c8e7724023b70 100644
(file)
--- a/
src/plugins/rssyl/rssyl.c
+++ b/
src/plugins/rssyl/rssyl.c
@@
-807,13
+807,22
@@
static gboolean rssyl_subscribe_uri(Folder *folder, const gchar *uri)
static void rssyl_copy_private_data(Folder *folder, FolderItem *oldi,
FolderItem *newi)
{
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(folder != NULL);
- g_return_if_fail(oldi != NULL);
- g_return_if_fail(newi != NULL);
+ g_return_if_fail(oldi
tem
!= NULL);
+ g_return_if_fail(newi
tem
!= NULL);
- rssyl_item_set_xml(newi->folder, newi,
- rssyl_item_get_xml(folder, oldi));
+ if( olditem->url != NULL ) {
+ g_free(newitem->url);
+ newitem->url = g_strdup(olditem->url);
+ }
+ if( olditem->official_title != NULL ) {
+ g_free(newitem->official_title);
+ newitem->official_title = g_strdup(olditem->official_title);
+ }
}
/************************************************************************/
}
/************************************************************************/