Fix toggle config using capitalised boolean value.

This commit is contained in:
Tomasz Kramkowski 2016-06-08 19:06:00 +01:00
parent e08c6cb059
commit 573c25073d

View File

@ -734,7 +734,7 @@ class ConfigManager(QObject):
val = self.get(section_, option)
layer = 'temp' if temp else 'conf'
if isinstance(val, bool):
self.set(layer, section_, option, str(not val))
self.set(layer, section_, option, str(not val).lower())
else:
raise cmdexc.CommandError(
"set: Attempted inversion of non-boolean value.")