Fix attributeerror when using spinbox in parametertree
This commit is contained in:
parent
b5955faaa2
commit
2d78ce6f87
|
@ -239,7 +239,7 @@ class SpinBox(QtGui.QAbstractSpinBox):
|
||||||
Select the numerical portion of the text to allow quick editing by the user.
|
Select the numerical portion of the text to allow quick editing by the user.
|
||||||
"""
|
"""
|
||||||
le = self.lineEdit()
|
le = self.lineEdit()
|
||||||
text = le.text()
|
text = asUnicode(le.text())
|
||||||
try:
|
try:
|
||||||
index = text.index(' ')
|
index = text.index(' ')
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user