fix for bug #203251, Cancelling Add Account Wizard gives error message in JS console

r=bz, sr=sspitzer, a=sspitzer, thanks to ian@arlen.demon.co.uk for the patch.
This commit is contained in:
sspitzer%netscape.com 2003-04-25 01:03:56 +00:00
parent 4cda207d0e
commit c9df22ab39

View File

@ -195,12 +195,15 @@ function verifyAccounts(wizardcallback) {
// has closed, and this is confusing to the user
function MsgAccountWizard()
{
setTimeout("msgOpenAccountWizard();", 0);
setTimeout("msgOpenAccountWizard();", 0);
}
function msgOpenAccountWizard()
{
// Check to see if the verify accounts function was called with callback or not.
gNewAccountToLoad = null;
// Check to see if the verify accounts function
// was called with callback or not.
if (gReturnmycall)
window.openDialog("chrome://messenger/content/AccountWizard.xul",
"AccountWizard", "chrome,modal,titlebar,resizable", {okCallback:WizCallback});