diff src/gtkblist.c @ 13195:c242836ff793

[gaim-migrate @ 15558] sf patch #1421206, from Sadrul Habib Chowdhury Fix a crash when renaming a group to an already existing group name (sf bug #1421118) committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 09 Feb 2006 00:10:12 +0000
parents 02268b52ced3
children f04dffe22957
line wrap: on
line diff
--- a/src/gtkblist.c	Thu Feb 09 00:00:08 2006 +0000
+++ b/src/gtkblist.c	Thu Feb 09 00:10:12 2006 +0000
@@ -4022,7 +4022,7 @@
 		count = gaim_blist_get_group_size(group, FALSE);
 	else
 		count = gaim_blist_get_group_online_count(group);
-	
+
 	if (count > 0 || gaim_prefs_get_bool("/gaim/gtk/blist/show_empty_groups"))
 		show = TRUE;
 	else {
@@ -4033,7 +4033,7 @@
 				if (buddy_is_displayable((GaimBuddy*)n)) {
 					show = TRUE;
 					break;
-				}					
+				}
 			}
 			n = gaim_blist_node_next(n, FALSE);
 		}
@@ -4257,6 +4257,9 @@
 	if(!gtkblist || !node)
 		return;
 
+	if (node->ui_data == NULL)
+		gaim_gtk_blist_new_node(node);
+
 	switch(node->type) {
 		case GAIM_BLIST_GROUP_NODE:
 			gaim_gtk_blist_update_group(list, node);