From e7ebcfa5d4fe049dcb0232dee213f697cb88fbba Mon Sep 17 00:00:00 2001 From: "ben%bengoodger.com" Date: Tue, 9 Mar 2004 06:51:27 +0000 Subject: [PATCH] make sure the default browser check doesn't incorrectly report status --- browser/components/prefwindow/content/pref-navigator.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/browser/components/prefwindow/content/pref-navigator.js b/browser/components/prefwindow/content/pref-navigator.js index 0932167f9a96..daad2d13852f 100644 --- a/browser/components/prefwindow/content/pref-navigator.js +++ b/browser/components/prefwindow/content/pref-navigator.js @@ -218,7 +218,7 @@ function checkNow() const IPS = Components.interfaces.nsIPromptService; var psvc = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(IPS); -// if (!shell.isDefaultBrowser(false)) { + if (!shell.isDefaultBrowser(false)) { promptMessage = shellBundle.getFormattedString("setDefaultBrowserMessage", [brandShortName]); var rv = psvc.confirmEx(window, promptTitle, promptMessage, @@ -227,12 +227,11 @@ function checkNow() null, null, null, null, { }); if (rv == 0) shell.setDefaultBrowser(true); -/* } else { promptMessage = shellBundle.getFormattedString("alreadyDefaultBrowser", [brandShortName]); psvc.alert(window, promptTitle, promptMessage); - }*/ + } } #endif