evolution-rss r119 - in trunk: . src



Author: lucilanga
Date: Fri Jan 18 20:19:42 2008
New Revision: 119
URL: http://svn.gnome.org/viewvc/evolution-rss?rev=119&view=rev

Log:
no channel warning

Modified:
   trunk/ChangeLog
   trunk/src/rss.c

Modified: trunk/src/rss.c
==============================================================================
--- trunk/src/rss.c	(original)
+++ trunk/src/rss.c	Fri Jan 18 20:19:42 2008
@@ -3615,17 +3615,21 @@
 		r->uri =  g_hash_table_lookup(rf->hr, lookup_key(user_data));
         	chn_name = display_doc (r);
 
-		if (g_ascii_strcasecmp(user_data, chn_name) != 0)
-		{
-			gchar *md5 = g_strdup(g_hash_table_lookup(rf->hrname, user_data));
-			g_hash_table_remove(rf->hrname_r, md5);
-			g_hash_table_remove(rf->hrname, user_data);
-			g_hash_table_insert(rf->hrname, g_strdup(chn_name), md5);
-			g_hash_table_insert(rf->hrname_r, g_strdup(md5), g_strdup(chn_name));
-			save_gconf_feed();
-		}
 		if (chn_name)
+		{
+			if (g_ascii_strcasecmp(user_data, chn_name) != 0)
+			{
+				gchar *md5 = g_strdup(
+					g_hash_table_lookup(rf->hrname, user_data));
+				g_hash_table_remove(rf->hrname_r, md5);
+				g_hash_table_remove(rf->hrname, user_data);
+				g_hash_table_insert(rf->hrname, g_strdup(chn_name), md5);
+				g_hash_table_insert(rf->hrname_r, g_strdup(md5), 
+								g_strdup(chn_name));
+				save_gconf_feed();
+			}
 			g_free(chn_name);
+		}
 		if (r->cache)
 			xmlFreeDoc(r->cache);
 		if (r->type)
@@ -4894,7 +4898,6 @@
 	}
 
 	t = g_strdup(get_real_channel_name(r->uri, NULL));
-	g_print("t:%s\n", t);
 	//feed might be added with no validation
 	//so it could be named Untitled channel
 	//till validation process



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]