summaryrefslogtreecommitdiff
path: root/add.go
diff options
context:
space:
mode:
Diffstat (limited to 'add.go')
-rw-r--r--add.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/add.go b/add.go
index 0544f0f..24d7149 100644
--- a/add.go
+++ b/add.go
@@ -55,9 +55,12 @@ func newAdd(n *tree.Node) {
me.treeRoot = n
return
}
+ if me.treeRoot == nil {
+ panic("test")
+ }
add(n)
if n.TK == nil {
- log.Log(WARN, "Tree sent an action on a widget we didn't seem to have.")
+ log.Log(WARN, "newAdd() Tree sent an action on a widget we didn't seem to have.", n.WidgetId)
// do this init here again? Probably something
// went wrong and we should reset the our while gocui.View tree
n.TK = initWidget(n)