/pidgin/main: 855c4a88c3c6: Correctly decrease online count of a...

Ankit Vani a at nevitus.org
Thu Feb 20 16:20:10 EST 2014


Changeset: 855c4a88c3c61afc71f4c4a8e755050b8708f228
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2014-02-21 02:49 +0530
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/855c4a88c3c6

Description:

Correctly decrease online count of a group when buddy is removed

diffstat:

 libpurple/buddylist.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/libpurple/buddylist.c b/libpurple/buddylist.c
--- a/libpurple/buddylist.c
+++ b/libpurple/buddylist.c
@@ -1364,7 +1364,7 @@ void purple_blist_remove_buddy(PurpleBud
 		if (PURPLE_BUDDY_IS_ONLINE(buddy)) {
 			purple_counting_node_change_online_count(contact_counter, -1);
 			if (purple_counting_node_get_online_count(contact_counter) == 0)
-				purple_counting_node_set_online_count(group_counter, -1);
+				purple_counting_node_change_online_count(group_counter, -1);
 		}
 		if (purple_account_is_connected(account)) {
 			purple_counting_node_change_current_size(contact_counter, -1);



More information about the Commits mailing list