diff options
Diffstat (limited to 'termui/bug_table.go')
-rw-r--r-- | termui/bug_table.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/termui/bug_table.go b/termui/bug_table.go index 78778ec3..169dd7c1 100644 --- a/termui/bug_table.go +++ b/termui/bug_table.go @@ -196,16 +196,16 @@ func (bt *bugTable) keybindings(g *gocui.Gui) error { } func (bt *bugTable) disable(g *gocui.Gui) error { - if err := g.DeleteView(bugTableView); err != nil { + if err := g.DeleteView(bugTableView); err != nil && err != gocui.ErrUnknownView { return err } - if err := g.DeleteView(bugTableHeaderView); err != nil { + if err := g.DeleteView(bugTableHeaderView); err != nil && err != gocui.ErrUnknownView { return err } - if err := g.DeleteView(bugTableFooterView); err != nil { + if err := g.DeleteView(bugTableFooterView); err != nil && err != gocui.ErrUnknownView { return err } - if err := g.DeleteView(bugTableInstructionView); err != nil { + if err := g.DeleteView(bugTableInstructionView); err != nil && err != gocui.ErrUnknownView { return err } return nil |