better handling of restart with tabs restored in Fx 4

This commit is contained in:
Simon Kornblith 2011-03-21 20:44:39 +00:00
parent 1654545d02
commit 3290d8f8cf

View file

@ -104,7 +104,8 @@ var ZoteroTab = new function()
if(tabs.length > 1) {
window.close();
} else {
this.containerWindow.BrowserGoHome();
if(Zotero.isFx4) this.containerWindow.gBrowser.unpinTab(tabs[0]);
document.location.replace(this.containerWindow.gHomeButton.getHomePage());
}
return;
}