Print '<Default configuration>' in crash report if it's unchanged
This commit is contained in:
parent
0091b4729a
commit
b574fcfe19
@ -419,6 +419,8 @@ class ConfigManager(QObject):
|
|||||||
if changed:
|
if changed:
|
||||||
lines.append('[{}]'.format(sectname))
|
lines.append('[{}]'.format(sectname))
|
||||||
lines += ['{} = {}'.format(k, v) for k, v in changed]
|
lines += ['{} = {}'.format(k, v) for k, v in changed]
|
||||||
|
if not lines:
|
||||||
|
lines = ['<Default configuration>']
|
||||||
return '\n'.join(lines)
|
return '\n'.join(lines)
|
||||||
|
|
||||||
def optionxform(self, val):
|
def optionxform(self, val):
|
||||||
|
Loading…
Reference in New Issue
Block a user