changeset 22697:c7c97c62e131

Fix a crash which I think happens when the same buddy is in the buddylist more than once, and when certain stars are aligned.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 23 Apr 2008 02:31:11 +0000
parents 3a41eb457605
children 4a05b9db0b91 0ad88bfdde60
files finch/gntconv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntconv.c	Wed Apr 23 02:29:39 2008 +0000
+++ b/finch/gntconv.c	Wed Apr 23 02:31:11 2008 +0000
@@ -682,7 +682,7 @@
 	ggc->active_conv = conv;
 	FINCH_SET_DATA(conv, ggc);
 
-	if (cc && FINCH_GET_DATA(cc)) {
+	if (cc && FINCH_GET_DATA(cc) && cc != conv) {
 		finch_conversation_set_active(conv);
 		return;
 	}