Error check harder

This commit is contained in:
Dave Pedu 2015-02-13 18:17:38 -08:00
parent 4539ff3c2c
commit f729ccc449
1 changed files with 5 additions and 3 deletions

View File

@ -74,9 +74,11 @@ _tabbro_ = function() {
this.t_addTabtoWindow = function(winid, tab, index) {
// Add a tab record to a window specified by winid
var win = this.t_getWindow(winid)
if(win) win.tabs.splice(index, 0, tab)
if(this.options.autoStickyTabs && win.sticky) {
tab.sticky = true;
if(win) {
win.tabs.splice(index, 0, tab)
if(this.options.autoStickyTabs && win.sticky) {
tab.sticky = true;
}
}
}