From 8c5589b0b585b6b492aa756d3dcf416256b78861 Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Tue, 6 Mar 2007 07:58:17 +0000 Subject: [PATCH] Bug #372671 --> "restore default" doesn't restore the default start page. sr=bienvenu --- mail/components/preferences/general.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mail/components/preferences/general.js b/mail/components/preferences/general.js index 1fbef8597cd..19f4d5a4f9e 100644 --- a/mail/components/preferences/general.js +++ b/mail/components/preferences/general.js @@ -99,7 +99,8 @@ var gGeneralPane = { { var startPage = document.getElementById("mailnews.start_page.url"); startPage.value = startPage.defaultValue; - startPage.setElementValue(document.getElementById("mailnewsStartPageUrl")); + if (startPage.hasUserValue) + startPage.reset(); }, /** @@ -112,7 +113,7 @@ var gGeneralPane = { this.mStartPageUrl = pref.value; var formatter = Components.classes["@mozilla.org/toolkit/URLFormatterService;1"]. getService(Components.interfaces.nsIURLFormatter); - return formatter.formatURL(this.mStartPageUrl); + return formatter.formatURL(this.mStartPageUrl); }, /**