summaryrefslogtreecommitdiffstats
path: root/module/gui/SettingsWidget.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/gui/SettingsWidget.py')
-rw-r--r--module/gui/SettingsWidget.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/gui/SettingsWidget.py b/module/gui/SettingsWidget.py
index 8123fe139..0f8a9c88e 100644
--- a/module/gui/SettingsWidget.py
+++ b/module/gui/SettingsWidget.py
@@ -107,10 +107,10 @@ class SettingsWidget(QWidget):
def reloadSection(self, sections, pdata):
for k, section in enumerate(pdata):
- if sections.has_key(k):
+ if k in sections:
widget = sections[k]
for item in section.items:
- if widget.inputs.has_key(item.name):
+ if item.name in widget.inputs:
i = widget.inputs[item.name]
if item.type == "int":
@@ -136,10 +136,10 @@ class SettingsWidget(QWidget):
def saveSection(self, sections, pdata, sec="core"):
for k, section in enumerate(pdata):
- if sections.has_key(k):
+ if k in sections:
widget = sections[k]
for item in section.items:
- if widget.inputs.has_key(item.name):
+ if item.name in widget.inputs:
i = widget.inputs[item.name]
if item.type == "int":