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 7145e02..ac29f24 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));
 
-       if( strlen(url) ) {
+       if( strlen(url) && strcmp(ritem->url, url)) {
                if( ritem->url ) {
+                       rssyl_passwd_set(ritem, NULL);
                        g_free(ritem->url);
                }
                ritem->url = g_strdup(url);