Skip to content
Snippets Groups Projects
Commit ffd0bb8b authored by js's avatar js
Browse files

If there are no per-contact settings, return defaults.

parent 2662b699
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment