[bugfix] setValue not working when type(item) in QLineEdit was 'int' instead of 'str'(i.e. 'unicode')

This commit is contained in:
Marcel Paffrath 2017-05-29 16:24:44 +02:00
parent 41a870d720
commit 0f1292e9f2

View File

@ -1891,7 +1891,7 @@ class AutoPickParaBox(QtGui.QWidget):
def setValue(self, box, value):
if type(box) == QtGui.QLineEdit:
box.setText(value)
box.setText(str(value))
elif type(box) == QtGui.QSpinBox or type(box) == QtGui.QDoubleSpinBox:
box.setMaximum(100*value)
box.setValue(value)