no need to write config file if an option is missing
This commit is contained in:
parent
9ccd594c5c
commit
544eefd3ac
|
@ -299,12 +299,9 @@ class GajimCore:
|
||||||
for part in default_tab.keys():
|
for part in default_tab.keys():
|
||||||
if not self.cfgParser.tab.has_key(part):
|
if not self.cfgParser.tab.has_key(part):
|
||||||
self.cfgParser.tab[part] = {}
|
self.cfgParser.tab[part] = {}
|
||||||
self.cfgParser.writeCfgFile()
|
|
||||||
for option in default_tab[part].keys():
|
for option in default_tab[part].keys():
|
||||||
if not self.cfgParser.tab[part].has_key(option):
|
if not self.cfgParser.tab[part].has_key(option):
|
||||||
self.cfgParser.tab[part][option] = default_tab[part][option]
|
self.cfgParser.tab[part][option] = default_tab[part][option]
|
||||||
self.cfgParser.writeCfgFile()
|
|
||||||
self.parse()
|
|
||||||
# END init_cfg_file
|
# END init_cfg_file
|
||||||
|
|
||||||
def parse(self):
|
def parse(self):
|
||||||
|
|
Loading…
Reference in New Issue