diff --git a/mailnews/base/prefs/resources/content/AccountWizard.js b/mailnews/base/prefs/resources/content/AccountWizard.js index 941edf1d8be0..894f09196d29 100644 --- a/mailnews/base/prefs/resources/content/AccountWizard.js +++ b/mailnews/base/prefs/resources/content/AccountWizard.js @@ -166,7 +166,7 @@ function onCancel() closeWizard = false; } - if(top.okCallback) { + if(top.okCallback && closeWizard) { var state = false; top.okCallback(state); }