Commit 9654c5ee authored by Yan's avatar Yan
Browse files

Debug of config

* fixed TypeError in settings which can be triggered when the settings
  are opened for the first time.
parent b538adff
......@@ -30,7 +30,7 @@ def pathsearch(text, value, config):
def pathlineconf(label, value, config):
"""adds generic filepath config line"""
textfield = QtWidgets.QLineEdit(config.value(value))
textfield = QtWidgets.QLineEdit(str(config.value(value)))
textfield.editingFinished.connect(lambda: config.setValue(
value, textfield.text()))
browse_button = QtWidgets.QPushButton("Browse..")
......@@ -45,7 +45,7 @@ def pathlineconf(label, value, config):
def posintvarconf(label, value, config):
"""adds generic positive integer config line"""
textfield = QtWidgets.QLineEdit(config.value(value))
textfield = QtWidgets.QLineEdit(str(config.value(value)))
textfield.editingFinished.connect(lambda: config.setValue(
value, textfield.text()))
validator = QtGui.QIntValidator()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment