summaryrefslogtreecommitdiff
path: root/entry.go
diff options
context:
space:
mode:
Diffstat (limited to 'entry.go')
-rw-r--r--entry.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/entry.go b/entry.go
index c24fe50..c10b7d0 100644
--- a/entry.go
+++ b/entry.go
@@ -42,11 +42,11 @@ func (b *GuiBox) GetText(name string) string {
func (n *Node) SetText(value string) error {
log.Println("gui.SetText() value =", value)
- if (n.uiText == nil) {
+ if (n.uiText != nil) {
n.uiText.SetText(value)
return nil
}
- if (n.uiButton == nil) {
+ if (n.uiButton != nil) {
n.uiButton.SetText(value)
return nil
}