diff --git a/src/gui/tabs.js b/src/gui/tabs.js index 6d87c211994874974a95e8465f05ac1b2168dc0e..36c30b0ba854f197d3fd14a2f80d46f640e6aee4 100644 --- a/src/gui/tabs.js +++ b/src/gui/tabs.js @@ -129,7 +129,7 @@ App.UI.Tabs = (function() { } // if no tabs are open, open the first one. - if (!any) { + if (!any && buttonList.length > 0) { buttonList[0].click(); }