summaryrefslogtreecommitdiff
path: root/lineedit.go
diff options
context:
space:
mode:
Diffstat (limited to 'lineedit.go')
-rw-r--r--lineedit.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/lineedit.go b/lineedit.go
index 98617a5..4234f7f 100644
--- a/lineedit.go
+++ b/lineedit.go
@@ -33,15 +33,15 @@ func NewPasswordEdit() *LineEdit {
}
// SetText sets the LineEdit's text.
-func (l *LineEdit) SetText(text string) (err error) {
+func (l *LineEdit) SetText(text string) {
l.lock.Lock()
defer l.lock.Unlock()
if l.created {
- return l.sysData.setText(text)
+ l.sysData.setText(text)
+ return
}
l.initText = text
- return nil
}
// Text returns the LineEdit's text.