Don't blat the default layout with an empty one

This commit is contained in:
Chris Jones 2010-03-05 12:29:02 +00:00
parent 7cc7ef80d3
commit ffc6a67e03
1 changed files with 3 additions and 0 deletions

View File

@ -535,6 +535,9 @@ class ConfigBase(Borg):
for layout in parser[section_name]: for layout in parser[section_name]:
dbg('ConfigBase::load: Processing %s: %s' % (section_name, dbg('ConfigBase::load: Processing %s: %s' % (section_name,
layout)) layout))
if layout == 'default' and \
parser[section_name][layout] == {}:
continue
section[layout] = parser[section_name][layout] section[layout] = parser[section_name][layout]
else: else:
try: try: