aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ui/tab.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ui/tab.go b/lib/ui/tab.go
index 7808db4..a9b24a9 100644
--- a/lib/ui/tab.go
+++ b/lib/ui/tab.go
@@ -89,7 +89,7 @@ func (tabs *Tabs) Replace(contentSrc Drawable, contentTarget Drawable, name stri
func (tabs *Tabs) Select(index int) {
if index >= len(tabs.Tabs) {
- panic("Tried to set tab index to a non-existing element")
+ return
}
if tabs.Selected != index {