Fix panic when tabs.popHistory is nonexistent

This commit is contained in:
Drew DeVault 2019-07-25 08:29:10 -04:00
parent fe2fef4b75
commit 2f626ddd18
1 changed files with 1 additions and 1 deletions

View File

@ -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 {