summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2014-12-14 20:46:22 +0100
committerFlorian Bruhin <git@the-compiler.org>2014-12-14 20:46:32 +0100
commite87b3fd5689aa20567167fafb19e9da195898349 (patch)
tree6ba12526cec564ead85ecff49db6396a7f3db28b
parenta96120b65a5b65f1fdb6a3bdabeaa46640b27b40 (diff)
downloadqutebrowser-e87b3fd5689aa20567167fafb19e9da195898349.tar.gz
qutebrowser-e87b3fd5689aa20567167fafb19e9da195898349.zip
Fix loading of renamed config sections.
-rw-r--r--qutebrowser/config/config.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py
index b7866d22a..a591262cd 100644
--- a/qutebrowser/config/config.py
+++ b/qutebrowser/config/config.py
@@ -360,9 +360,13 @@ class ConfigManager(QObject):
old_sectname = reverse_renamed_sections[sectname]
else:
old_sectname = sectname
- if old_sectname not in cp:
+ if old_sectname in cp:
+ real_sectname = old_sectname
+ elif sectname in cp:
+ real_sectname = sectname
+ else:
continue
- for k, v in cp[old_sectname].items():
+ for k, v in cp[real_sectname].items():
if k.startswith(self.ESCAPE_CHAR):
k = k[1:]
# configparser can't handle = in keys :(