From dcfd14e8188e870f0c2476105228d02b84262d9b Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Thu, 19 Jan 2006 09:17:38 +0000 Subject: [PATCH] Bug 323723 Can't select SMTP server when creating a new identity r+sr=bienvenu --- mailnews/base/prefs/resources/content/am-addressing.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mailnews/base/prefs/resources/content/am-addressing.js b/mailnews/base/prefs/resources/content/am-addressing.js index 01ae6192fa9d..a61a5cded5a2 100644 --- a/mailnews/base/prefs/resources/content/am-addressing.js +++ b/mailnews/base/prefs/resources/content/am-addressing.js @@ -55,16 +55,16 @@ function enabling() // If the default per-identity directory preferences are locked // disable the corresponding elements. - if (gPrefInt.prefIsLocked("mail.identity." + gIdentity.key + ".overrideGlobal_Pref")) { + if (gIdentity && gPrefInt.prefIsLocked("mail.identity." + gIdentity.key + ".overrideGlobal_Pref")) { document.getElementById("useGlobalPref").setAttribute("disabled", "true"); document.getElementById("directories").setAttribute("disabled", "true"); } else { - document.getElementById("useGlobalPref").removeAttribute("disabled"); + document.getElementById("useGlobalPref").removeAttribute("disabled"); document.getElementById("directories").removeAttribute("disabled"); } - if (gPrefInt.prefIsLocked("mail.identity." + gIdentity.key + ".directoryServer")) { + if (gIdentity && gPrefInt.prefIsLocked("mail.identity." + gIdentity.key + ".directoryServer")) { document.getElementById("directoriesList").setAttribute("disabled", "true"); document.getElementById("directoriesListPopup").setAttribute("disabled", "true"); }