no need to write config file if an option is missing

This commit is contained in:
Yann Leboulanger 2005-01-22 20:35:43 +00:00
parent 9ccd594c5c
commit 544eefd3ac
1 changed files with 0 additions and 3 deletions

View File

@ -299,12 +299,9 @@ class GajimCore:
for part in default_tab.keys():
if not self.cfgParser.tab.has_key(part):
self.cfgParser.tab[part] = {}
self.cfgParser.writeCfgFile()
for option in default_tab[part].keys():
if not self.cfgParser.tab[part].has_key(option):
self.cfgParser.tab[part][option] = default_tab[part][option]
self.cfgParser.writeCfgFile()
self.parse()
# END init_cfg_file
def parse(self):