fixed iteration

This commit is contained in:
Ryan Farley 2017-09-19 14:19:28 -05:00
parent cc540bb166
commit a530b0cc95

View File

@ -483,9 +483,9 @@ class Config(QObject):
Here, we check all those saved copies for mutations, and if something Here, we check all those saved copies for mutations, and if something
mutated, we call set_obj again so we save the new value. mutated, we call set_obj again so we save the new value.
""" """
for name, vals in self._mutables: for name in self._mutables:
old_value = vals[0] old_value = self._mutables[name][0]
new_value = vals[1] new_value = self._mutables[name][1]
if old_value != new_value: if old_value != new_value:
log.config.debug("{} was mutated, updating".format(name)) log.config.debug("{} was mutated, updating".format(name))
self.set_obj(name, new_value, save_yaml=save_yaml) self.set_obj(name, new_value, save_yaml=save_yaml)