don't add empty group when we add a contact. fixes #2833
This commit is contained in:
parent
64dec82bb6
commit
81fb64f6b2
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue