/pidgin/main: 8f9c22bdbe8e: Bugfix: update group size, when remo...
Tomasz Wasilczyk
tomkiewicz at cpw.pidgin.im
Sat Jul 14 10:26:43 EDT 2012
Changeset: 8f9c22bdbe8e9fd4f5018367e46ecf181b0690b6
Author: Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date: 2012-07-14 16:26 +0200
Branch: default
URL: http://hg.pidgin.im/pidgin/main/rev/8f9c22bdbe8e
Description:
Bugfix: update group size, when removing contact
diffstat:
libpurple/blist.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (25 lines):
diff --git a/libpurple/blist.c b/libpurple/blist.c
--- a/libpurple/blist.c
+++ b/libpurple/blist.c
@@ -2068,11 +2068,13 @@
{
PurpleBlistUiOps *ops = purple_blist_get_ui_ops();
PurpleBlistNode *node, *gnode;
+ PurpleGroup *group;
g_return_if_fail(contact != NULL);
node = (PurpleBlistNode *)contact;
gnode = node->parent;
+ group = PURPLE_GROUP(gnode);
if (node->child) {
/*
@@ -2097,6 +2099,7 @@
node->prev->next = node->next;
if (node->next)
node->next->prev = node->prev;
+ group->totalsize--;
/* Update the UI */
if (ops && ops->remove)
More information about the Commits
mailing list