Fix attributeerror when using spinbox in parametertree

This commit is contained in:
Luke Campagnola 2014-11-14 07:42:17 -05:00
parent b5955faaa2
commit 2d78ce6f87

View File

@ -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: