[Git][gajim/gajim][master] Fallback to account name when label is missing

Philipp Hörist gitlab at dev.gajim.org
Sun Jul 8 21:28:08 CEST 2018


Philipp Hörist pushed to branch master at gajim / gajim


Commits:
c25a4a0a by Philipp Hörist at 2018-07-08T21:28:02+02:00
Fallback to account name when label is missing

Fixes #9236

- - - - -


1 changed file:

- gajim/common/app.py


Changes:

=====================================
gajim/common/app.py
=====================================
--- a/gajim/common/app.py
+++ b/gajim/common/app.py
@@ -397,7 +397,8 @@ def get_enabled_accounts_with_labels(exclude_local=True):
     accounts = []
     for acc in connections:
         if not exclude_local or acc != 'Local':
-            acc_label = config.get_per('accounts', acc, 'account_label')
+            acc_label = config.get_per(
+                'accounts', acc, 'account_label') or acc
             accounts.append([acc, acc_label])
     accounts.sort(key=lambda xs: str.lower(xs[1]))
     return accounts



View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/c25a4a0aabbaa8145bb1319c18d387f467a63861

-- 
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/c25a4a0aabbaa8145bb1319c18d387f467a63861
You're receiving this email because of your account on dev.gajim.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gajim.org/pipermail/commits/attachments/20180708/76388f9a/attachment.html>


More information about the Commits mailing list