changeset 14566:d2de045b077f

[gaim-migrate @ 17290] If a group is selected, and one of the buddies change status/goes online/offline, the color of the selected group sometimes gets changed. This fixes that. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 17 Sep 2006 04:42:42 +0000
parents ca943d7fb274
children d6eae5115b31
files gtk/gtkblist.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtkblist.c	Sat Sep 16 20:16:47 2006 +0000
+++ b/gtk/gtkblist.c	Sun Sep 17 04:42:42 2006 +0000
@@ -4357,7 +4357,7 @@
 	int count;
 	gboolean show = FALSE;
 	GaimBlistNode* gnode;
-	gboolean selected = gtkblist ? (gtkblist->selected_node == node) : FALSE;
+	gboolean selected;
 
 	g_return_if_fail(node != NULL);
 
@@ -4370,6 +4370,7 @@
 	else
 		return;
 
+	selected = gtkblist ? (gtkblist->selected_node == gnode) : FALSE;
 	group = (GaimGroup*)gnode;
 
 	if(gaim_prefs_get_bool("/gaim/gtk/blist/show_offline_buddies"))