[Mail]Fix for bug 333243

jeff cai <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <1141392186.29487.9.camel@commissionaire>
Hi
If uri is null, don't remove it.

Please review it.

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
patch333243 (text/x-patch, 1.1 KB)
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.3815
diff -u -r1.3815 ChangeLog
--- ChangeLog	3 Mar 2006 10:03:25 -0000	1.3815
+++ ChangeLog	3 Mar 2006 12:46:06 -0000
@@ -1,3 +1,9 @@
+2006-03-03  Jeff Cai <[email protected]>
+
+	** Fixes 333243
+	* em-folder-tree-model.c: (em_folder_tree_model_remove_folders):
+	For null uri, don't need remove it.
+
 2006-03-03  Žygimantas Beručka  <[email protected]>
 
 	* default/Makefile.am: Added Lithuanian to SUBDIRS.
Index: em-folder-tree-model.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-folder-tree-model.c,v
retrieving revision 1.74
diff -u -r1.74 em-folder-tree-model.c
--- em-folder-tree-model.c	10 Jan 2006 08:10:30 -0000	1.74
+++ em-folder-tree-model.c	3 Mar 2006 12:46:06 -0000
@@ -898,7 +898,8 @@
 		gtk_tree_row_reference_free (row);
 	}
 	
-	em_folder_tree_model_remove_uri (model, uri);
+	if (uri)
+		em_folder_tree_model_remove_uri (model, uri);
 	
 	gtk_tree_store_remove ((GtkTreeStore *) model, toplevel);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.