Commit 2d78ce6f authored by Luke Campagnola's avatar Luke Campagnola
Browse files

Fix attributeerror when using spinbox in parametertree

parent b5955faa
......@@ -239,7 +239,7 @@ class SpinBox(QtGui.QAbstractSpinBox):
Select the numerical portion of the text to allow quick editing by the user.
"""
le = self.lineEdit()
text = le.text()
text = asUnicode(le.text())
try:
index = text.index(' ')
except ValueError:
......
Markdown is supported
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