summaryrefslogtreecommitdiff
path: root/dropdown.go
diff options
context:
space:
mode:
Diffstat (limited to 'dropdown.go')
-rw-r--r--dropdown.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/dropdown.go b/dropdown.go
index 9832874..6c3a9ff 100644
--- a/dropdown.go
+++ b/dropdown.go
@@ -65,6 +65,9 @@ func addDropdownNew(wId int) *tree.Node {
tk.labelN = "DropBox text"
tk.node = n
+ if tk.node.Parent == nil {
+ tk.node.Parent = me.treeRoot
+ }
// copy the data from the action message
tk.node.State.Label = "DropBox"