From 81fb64f6b29737292307054c7acf63c02fa3a4aa Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 27 Dec 2006 10:39:03 +0000 Subject: [PATCH] don't add empty group when we add a contact. fixes #2833 --- src/dialogs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dialogs.py b/src/dialogs.py index f99d834e7..49a3c3a37 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -639,9 +639,12 @@ _('Please fill in the data of the contact you want to add in account %s') %accou else: message= '' group = self.group_comboboxentry.child.get_text().decode('utf-8') + groups = [] + if group: + groups = [group] auto_auth = self.auto_authorize_checkbutton.get_active() gajim.interface.roster.req_sub(self, jid, message, self.account, - groups = [group], nickname = nickname, auto_auth = auto_auth) + groups = groups, nickname = nickname, auto_auth = auto_auth) self.window.destroy() def on_protocol_combobox_changed(self, widget):