www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 1654545d02ae1dd2f95f960537d2955a29ac3dba
parent a6b03e5cf5428f0d8c04823cbccdc3d2dd63fde0
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon, 21 Mar 2011 20:40:50 +0000

if not in tab mode and tabs are being saved and Zotero tab is the only tab open in a window, don't close it on startup


Diffstat:
Mchrome/content/zotero/tab.js | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/tab.js b/chrome/content/zotero/tab.js @@ -99,7 +99,13 @@ var ZoteroTab = new function() this._swapZoteroPane = function() { if(!this.containerWindow.ZoteroOverlay.isTab) { - window.close(); + var tabs = (this.containerWindow.gBrowser.tabs + ? this.containerWindow.gBrowser.tabs : this.containerWindow.gBrowser.mTabs); + if(tabs.length > 1) { + window.close(); + } else { + this.containerWindow.BrowserGoHome(); + } return; }