changeset 1297:aa6a0fe8e03f

[gaim-migrate @ 1307] remove group works properly committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 18 Dec 2000 23:47:41 +0000
parents 11e5b1220028
children 38f8096975ef
files src/buddy.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Mon Dec 18 23:31:04 2000 +0000
+++ b/src/buddy.c	Mon Dec 18 23:47:41 2000 +0000
@@ -541,6 +541,7 @@
 {
 	GSList *grp;
 	GSList *mem;
+	struct group_show *gs;
 	
 	struct group *delg;
 	struct buddy *delb;
@@ -559,6 +560,13 @@
 	}
 
 	gc->groups = g_slist_remove(gc->groups, delg);
+
+	if ((gs = find_group_show(delg->name)) != NULL) {
+		shows = g_slist_remove(shows, gc);
+		gtk_tree_remove_item(GTK_TREE(buddies), gs->item);
+		g_free(gs->name);
+		g_free(gs);
+	}
 	g_free(delg);
 
         // flush buddy list to cache