diff --git a/gui/tunnels.go b/gui/tunnels.go index e3284de..20299f1 100755 --- a/gui/tunnels.go +++ b/gui/tunnels.go @@ -413,6 +413,10 @@ func (t *Tunnels) Create() error { btnDelTunnel.Connect("clicked", func() { err := func() error { row := tl.GetSelectedRow() + if row == nil { + return errors.New("No row selected.") + } + name, err := row.GetName() if err != nil { return err