summaryrefslogtreecommitdiff
path: root/qutebrowser/config/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/config/config.py')
-rw-r--r--qutebrowser/config/config.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py
index 918c9b894..b2736158f 100644
--- a/qutebrowser/config/config.py
+++ b/qutebrowser/config/config.py
@@ -553,11 +553,12 @@ class Config(QObject):
Here, we check all those saved copies for mutations, and if something
mutated, we call set_obj again so we save the new value.
"""
- for name, (old_value, new_value) in self._mutables.items():
+ mutables = self._mutables.items()
+ self._mutables = {}
+ for name, (old_value, new_value) in mutables:
if old_value != new_value:
log.config.debug("{} was mutated, updating".format(name))
self.set_obj(name, new_value, save_yaml=save_yaml)
- self._mutables = {}
def dump_userconfig(self) -> str:
"""Get the part of the config which was changed by the user.