diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-09-20 15:19:17 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-09-20 16:04:34 +0100 |
commit | b070c914d5f59f2f5b7a5cd1ad476b9c4729eaaf (patch) | |
tree | b29dd1662d2cd4815b2aa308810fd57706632ad1 | |
parent | 2413a026e53c42fa0973b0a861587dff12c1e65e (diff) |
Roster: don't emit nicknames-update with no nicknames.
This was triggering an assertion failure in one of the signal handlers,
which asserts that the array is non-empty.
Reviewed-by: Marco Barisione <marco@barisione.org>
-rw-r--r-- | src/roster.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roster.c b/src/roster.c index 939ca0c9..6091a24a 100644 --- a/src/roster.c +++ b/src/roster.c @@ -1317,7 +1317,7 @@ process_roster ( _gabble_roster_item_maybe_remove (roster, handle); } - if (updates_nicknames) + if (updates_nicknames->len > 0) g_signal_emit (roster, signals[NICKNAMES_UPDATE], 0, updates_nicknames); tp_base_contact_list_contacts_changed ((TpBaseContactList *) roster, |