From ffd0bb8b0b35bad726d2b284604763af1d951f78 Mon Sep 17 00:00:00 2001 From: js Date: Thu, 24 Jul 2008 22:13:13 +0000 Subject: [PATCH] If there are no per-contact settings, return defaults. --- src/common/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/config.py b/src/common/config.py index 7b5307a8c..c6152c692 100644 --- a/src/common/config.py +++ b/src/common/config.py @@ -585,6 +585,10 @@ class Config: if not key: return dict.keys() if not dict.has_key(key): + if self.__options_per_key.has_key(optname) \ + and self.__options_per_key[optname][0].has_key(subname): + return self.__options_per_key \ + [optname][0][subname][1] return None obj = dict[key] if not subname: