Mercurial > pidgin
changeset 120:991d5f0c6c90
[gaim-migrate @ 130]
Whoops, shouldn't expand if wasn't expanded.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 15 Apr 2000 23:29:33 +0000 |
parents | 66ec3865bd46 |
children | 3571b593f423 |
files | src/buddy.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buddy.c Sat Apr 15 21:25:22 2000 +0000 +++ b/src/buddy.c Sat Apr 15 23:29:33 2000 +0000 @@ -1318,8 +1318,10 @@ if (!b->present) { gtk_widget_hide(b->item); g = find_group_by_buddy(name); - gtk_tree_item_collapse(GTK_TREE_ITEM(g->item)); - gtk_tree_item_expand(GTK_TREE_ITEM(g->item)); + if (GTK_TREE_ITEM(g->item)->expanded) { + gtk_tree_item_collapse(GTK_TREE_ITEM(g->item)); + gtk_tree_item_expand(GTK_TREE_ITEM(g->item)); + } } else set_buddy(b);