summaryrefslogtreecommitdiff
path: root/addNode.go
diff options
context:
space:
mode:
Diffstat (limited to 'addNode.go')
-rw-r--r--addNode.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/addNode.go b/addNode.go
index 36c5a06..ab0e687 100644
--- a/addNode.go
+++ b/addNode.go
@@ -4,7 +4,7 @@ import (
"errors"
"go.wit.com/log"
- "go.wit.com/lib/widget"
+ "go.wit.com/widget"
)
// this is in common.go, do not move it
@@ -17,14 +17,14 @@ func (me *TreeInfo) AddNode(a *widget.Action) *Node {
n.State = a.State
n.Strings = make(map[string]int)
- if (a.WidgetType == widget.Root) {
+ if a.WidgetType == widget.Root {
log.Info("AddNode() Root")
n.Parent = n
me.treeRoot = n
return n
}
- if (me.treeRoot.FindWidgetId(a.WidgetId) != nil) {
+ if me.treeRoot.FindWidgetId(a.WidgetId) != nil {
log.Warn("AddNode() WidgetId already exists", a.WidgetId)
log.Warn("probably this is a Show() / Hide() issue")
log.Warn("TODO: figure out what to do here")