Skip to content

Commit

Permalink
Merge pull request #39 from tgbv/bug-35
Browse files Browse the repository at this point in the history
fix: Handle the case when no rows are selected
  • Loading branch information
UnnoTed authored Sep 30, 2023
2 parents b0a0014 + a541ac2 commit d806a8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gui/tunnels.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d806a8b

Please sign in to comment.