don't add empty group when we add a contact. fixes #2833

This commit is contained in:
Yann Leboulanger 2006-12-27 10:39:03 +00:00
parent 64dec82bb6
commit 81fb64f6b2
1 changed files with 4 additions and 1 deletions

View File

@ -639,9 +639,12 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
else: else:
message= '' message= ''
group = self.group_comboboxentry.child.get_text().decode('utf-8') group = self.group_comboboxentry.child.get_text().decode('utf-8')
groups = []
if group:
groups = [group]
auto_auth = self.auto_authorize_checkbutton.get_active() auto_auth = self.auto_authorize_checkbutton.get_active()
gajim.interface.roster.req_sub(self, jid, message, self.account, 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() self.window.destroy()
def on_protocol_combobox_changed(self, widget): def on_protocol_combobox_changed(self, widget):