diff --git a/chrome/content/zotero/tabs.js b/chrome/content/zotero/tabs.js index 26a239f6a4..f6a0160765 100644 --- a/chrome/content/zotero/tabs.js +++ b/chrome/content/zotero/tabs.js @@ -208,6 +208,9 @@ var Zotero_Tabs = new function () { if (tab.id == this._selectedID) { this.select(this._prevSelectedID || (this._tabs[tabIndex + 1] || this._tabs[tabIndex - 1]).id); } + if (tab.id == this._prevSelectedID) { + this._prevSelectedID = null; + } this._tabs.splice(tabIndex, 1); document.getElementById(tab.id).remove(); if (tab.onClose) {