# HG changeset patch
# User Sadrul Habib Chowdhury <imadil@gmail.com>
# Date 1161237360 0
# Node ID 56dbadfa6543784cdd7071389fe0e174969aacf2
# Parent  ec9cc2219e552fd8614d315636c8d214fdfa2836
[gaim-migrate @ 17545]
Patch #1580124 from Richard Nelson (wabz): There's no need to update a contact
if it doesn't have any child.

committer: Tailor Script <tailor@pidgin.im>

diff -r ec9cc2219e55 -r 56dbadfa6543 libgaim/blist.c
--- a/libgaim/blist.c	Thu Oct 19 03:23:01 2006 +0000
+++ b/libgaim/blist.c	Thu Oct 19 05:56:00 2006 +0000
@@ -1808,7 +1808,7 @@
 	gaim_blist_schedule_save();
 
 	/* Re-sort the contact */
-	if (contact->priority == buddy) {
+	if (cnode->child && contact->priority == buddy) {
 		gaim_contact_invalidate_priority_buddy(contact);
 		if (ops && ops->update)
 			ops->update(gaimbuddylist, cnode);