summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-19 20:35:33 -0600
committerJeff Carr <[email protected]>2024-01-19 20:35:33 -0600
commit54a01b3bf13758e1ffc8815e445bab003a9f4cfb (patch)
tree088247d427639ecbb1b87e9db869a078d12e923e
parentd15fa1cf88cc7652b70217906155bde2c0e6f5d6 (diff)
ignore deletes when they are already deleted
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--action.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/action.go b/action.go
index 42b0fbe..25f780a 100644
--- a/action.go
+++ b/action.go
@@ -193,6 +193,10 @@ func processAction(a *widget.Action) {
n := me.treeRoot.FindWidgetId(a.WidgetId)
if n == nil {
+ if a.ActionType == widget.Delete {
+ // this is normal. the widget is aleady deleted
+ return
+ }
log.Error(errors.New("andlabs processAction() ERROR findWidgetId found nil"), a.ActionType, a.WidgetType)
log.Log(NOW, "processAction() ERROR findWidgetId found nil for id =", a.WidgetId)
log.Log(NOW, "processAction() ERROR findWidgetId found nil", a.ActionType, a.WidgetType)