Skip to content
Snippets Groups Projects
Commit 544eefd3 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

no need to write config file if an option is missing

parent 9ccd594c
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
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