From 59d2fbdbd0e2775059b8efd1685c070b4e61c750 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 git-svn-id: svn://10.0.0.236/trunk@153737 18797224-902f-48f8-a5cc-f745e15eee43 --- .../browser/components/prefwindow/content/pref-navigator.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mozilla/browser/components/prefwindow/content/pref-navigator.js b/mozilla/browser/components/prefwindow/content/pref-navigator.js index 0932167f9a9..daad2d13852 100644 --- a/mozilla/browser/components/prefwindow/content/pref-navigator.js +++ b/mozilla/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