sort accounts in accounts window

This commit is contained in:
Yann Leboulanger 2015-01-02 13:36:29 +01:00
parent 70d6d4e033
commit 2361212676
1 changed files with 3 additions and 1 deletions

View File

@ -1632,7 +1632,9 @@ class AccountsWindow:
self.current_account = None
model = self.accounts_treeview.get_model()
model.clear()
for account in gajim.config.get_per('accounts'):
list_ = gajim.config.get_per('accounts')
list_.sort()
for account in list_:
iter_ = model.append()
model.set(iter_, 0, account)