From 981ca7d18e31285d2ba413f8a6234b97905a2385 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 16 Apr 2014 23:21:57 +0200 Subject: [PATCH] Fix layer handling in dump_userconfig --- qutebrowser/config/config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py index 2d34b6a87..22b457a61 100644 --- a/qutebrowser/config/config.py +++ b/qutebrowser/config/config.py @@ -349,10 +349,10 @@ class Config(QObject): for secname, section in self.config.items(): changed_opts = [] for optname, option in section.items(): - if (option.values.temp is not None and - option.values.temp != option.default or - option.values.conf is not None and - option.values.conf != option.default): + if (option.values['temp'] is not None and + option.values['temp'] != option.values['default'] or + option.values['conf'] is not None and + option.values['conf'] != option.values['default']): keyval = '{} = {}'.format(optname, option) # FIXME layer? changed_opts.append(keyval) if changed_opts: