Bug 428329 - Closing the main window without first closing the customization dialog can lead to loss of all toolbar items, if the document goes away first and we persist nothing but 'undefined' as the currentset, r=mkmelin

git-svn-id: svn://10.0.0.236/trunk@250106 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
philringnalda%gmail.com 2008-04-12 03:58:46 +00:00
parent 7d7aebc8d8
commit a83f4ab5b2

View File

@ -180,7 +180,7 @@ function getToolbarAt(i)
*/
function persistCurrentSets()
{
if (!gToolboxChanged)
if (!gToolboxChanged || gToolboxDocument.defaultView.closed)
return;
var customCount = 0;