summaryrefslogtreecommitdiff
path: root/action.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-04 20:29:27 -0600
committerJeff Carr <[email protected]>2025-03-04 20:29:27 -0600
commit860908c82fbd14491ceb6e273a64b899787f7553 (patch)
tree448aed773786a68aadc1d9dc4b150e4c3af050cb /action.go
parent5e1ec700fd05b3a324f4258f60a97661db179597 (diff)
need proper locking
Diffstat (limited to 'action.go')
-rw-r--r--action.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/action.go b/action.go
index 484ba94..f2ef7e3 100644
--- a/action.go
+++ b/action.go
@@ -134,7 +134,7 @@ func (me *TreeInfo) doAction(a widget.Action) {
me.Hide(n)
}
log.Info("tree: todo: remove child from parent")
- n.DeleteNode()
+ me.DeleteNode(n)
// now remove the child from the parent
default:
log.Log(TREEWARN, "tree.Action() unknown action", a.ActionType, "on wId", a.WidgetId)