From a68bdec2fd8a23230ed12348c3801d349b19dea2 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 10 Mar 2014 10:45:15 -0400 Subject: Removed error returns from [all controls].SetText() and Window.SetTitle(). --- lineedit.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lineedit.go') 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. -- cgit v1.2.3