summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2014-07-29 22:51:32 +0200
committerFlorian Bruhin <git@the-compiler.org>2014-07-29 22:51:32 +0200
commitb574fcfe197bf05c6028fb079a14cf84bec29ec2 (patch)
tree60b398bc7fbe3c1cee34af741f0053ddd6d7b5db
parent0091b4729aadf2a1cce7a675f08dec673c453b1a (diff)
downloadqutebrowser-b574fcfe197bf05c6028fb079a14cf84bec29ec2.tar.gz
qutebrowser-b574fcfe197bf05c6028fb079a14cf84bec29ec2.zip
Print '<Default configuration>' in crash report if it's unchanged
-rw-r--r--qutebrowser/config/config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py
index dd0d06cf4..0c54fe0c7 100644
--- a/qutebrowser/config/config.py
+++ b/qutebrowser/config/config.py
@@ -419,6 +419,8 @@ class ConfigManager(QObject):
if changed:
lines.append('[{}]'.format(sectname))
lines += ['{} = {}'.format(k, v) for k, v in changed]
+ if not lines:
+ lines = ['<Default configuration>']
return '\n'.join(lines)
def optionxform(self, val):