order groups in add contact dialog. Fixes #2365
This commit is contained in:
parent
9b55075f1d
commit
0ee02dd62f
|
@ -519,15 +519,17 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
|
||||||
else:
|
else:
|
||||||
self.uid_entry.grab_focus()
|
self.uid_entry.grab_focus()
|
||||||
group_names = []
|
group_names = []
|
||||||
i = 0
|
|
||||||
for acct in accounts:
|
for acct in accounts:
|
||||||
for g in gajim.groups[acct].keys():
|
for g in gajim.groups[acct].keys():
|
||||||
if g not in helpers.special_groups and g not in group_names:
|
if g not in helpers.special_groups and g not in group_names:
|
||||||
group_names.append(g)
|
group_names.append(g)
|
||||||
self.group_comboboxentry.append_text(g)
|
group_names.sort()
|
||||||
if group == g:
|
i = 0
|
||||||
self.group_comboboxentry.set_active(i)
|
for g in group_names:
|
||||||
i += 1
|
self.group_comboboxentry.append_text(g)
|
||||||
|
if group == g:
|
||||||
|
self.group_comboboxentry.set_active(i)
|
||||||
|
i += 1
|
||||||
|
|
||||||
if self.account:
|
if self.account:
|
||||||
self.account_label.hide()
|
self.account_label.hide()
|
||||||
|
|
Loading…
Reference in New Issue