summaryrefslogtreecommitdiff
path: root/view.go
diff options
context:
space:
mode:
Diffstat (limited to 'view.go')
-rw-r--r--view.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/view.go b/view.go
index 4da4ada..633eaa4 100644
--- a/view.go
+++ b/view.go
@@ -169,6 +169,9 @@ func (w *guiWidget) recreateView() {
}
func (w *guiWidget) hideWidgets() {
+ if w == nil {
+ return
+ }
w.isCurrent = false
switch w.node.WidgetType {
case widget.Root: