diff options
Diffstat (limited to 'module/gui/SettingsWidget.py')
-rw-r--r-- | module/gui/SettingsWidget.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/gui/SettingsWidget.py b/module/gui/SettingsWidget.py index ebe849d48..4e8440667 100644 --- a/module/gui/SettingsWidget.py +++ b/module/gui/SettingsWidget.py @@ -117,7 +117,7 @@ class SettingsWidget(QWidget): elif not item.type.find(";") == -1: i.setCurrentIndex(i.findText(item.value)) elif item.type == "bool": - if True if item.value.lower() in ("1","true", "on", "an","yes") else False: + if True if item.value.lower() in ("1", "true", "on", "an", "yes") else False: i.setCurrentIndex(0) else: i.setCurrentIndex(1) @@ -141,7 +141,7 @@ class SettingsWidget(QWidget): if item.name in widget.inputs: i = widget.inputs[item.name] - #TODO : unresolved reference: option + #TODO: unresolved reference: option if item.type == "int": if i.value() != int(item.value): @@ -150,7 +150,7 @@ class SettingsWidget(QWidget): if i.currentText() != item.value: self.connector.setConfigValue(k, option, i.currentText(), sec) elif item.type == "bool": - if (True if item.value.lower() in ("1","true", "on", "an","yes") else False) ^ (not i.currentIndex()): + if (True if item.value.lower() in ("1", "true", "on", "an", "yes") else False) ^ (not i.currentIndex()): self.connector.setConfigValue(k, option, not i.currentIndex(), sec) else: if i.text() != item.value: @@ -191,7 +191,7 @@ class Section(QGroupBox): i = QComboBox(self) i.addItem(_("Yes"), QVariant(True)) i.addItem(_("No"), QVariant(False)) - if True if option.value.lower() in ("1","true", "on", "an","yes") else False: + if True if option.value.lower() in ("1", "true", "on", "an", "yes") else False: i.setCurrentIndex(0) else: i.setCurrentIndex(1) |