Update passwordstore if RSSyl feed's URL gets changed.
authorAndrej Kacian <ticho@claws-mail.org>
Sat, 9 Apr 2016 13:28:06 +0000 (15:28 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Sat, 9 Apr 2016 13:28:06 +0000 (15:28 +0200)
src/plugins/rssyl/rssyl_feed_props.c

index 7145e024960e0fedad55b94f6c7c49d097023dfb..ac29f2410ad595d553a92998e1878ffd805ab7bc 100644 (file)
@@ -52,8 +52,9 @@ static void rssyl_gtk_prop_store(RFolderItem *ritem)
 
        url = (gchar *)gtk_entry_get_text(GTK_ENTRY(ritem->feedprop->url));
 
 
        url = (gchar *)gtk_entry_get_text(GTK_ENTRY(ritem->feedprop->url));
 
-       if( strlen(url) ) {
+       if( strlen(url) && strcmp(ritem->url, url)) {
                if( ritem->url ) {
                if( ritem->url ) {
+                       rssyl_passwd_set(ritem, NULL);
                        g_free(ritem->url);
                }
                ritem->url = g_strdup(url);
                        g_free(ritem->url);
                }
                ritem->url = g_strdup(url);