From 99f1bf40c572a091dec8a52a39a9ffe1f106f8a2 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 2 Sep 2005 14:03:00 +0000 Subject: [PATCH] correct invalid theme name in old config file --- src/gajim.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gajim.py b/src/gajim.py index 4eff70221..d8885b809 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -1059,6 +1059,9 @@ class Interface: gajim.config.add_per('statusmsg', msg) gajim.config.set_per('statusmsg', msg, 'message', gajim.config.statusmsg_default[msg]) #add default themes if there is not in the config file + theme = gajim.config.get('roster_theme') + if not theme in gajim.config.get_per('themes'): + gajim.config.set('roster_theme', 'green') if len(gajim.config.get_per('themes')) == 0: d = ['accounttextcolor', 'accountbgcolor', 'accountfont', 'grouptextcolor', 'groupbgcolor', 'groupfont', 'contacttextcolor',