followup fix for Bug 407875 - disable control when canCheckForUpdates is false instead of canUpdate. r=dolske, a=beltzner
authorRobert Strong <robert.bugzilla@gmail.com>
Thu, 19 Nov 2009 15:20:57 -0800
changeset 33080 6a0866aeab8e3905075c21c9c5ac7535a2d12e27
parent 33079 7073a2a79bc3a62238830dec777952a096a4ed67
child 33081 189315c8f21a7d7276bebadfb60bb56c8a64c628
push id756
push userrstrong@mozilla.com
push dateThu, 19 Nov 2009 23:21:08 +0000
reviewersdolske, beltzner
bugs407875
milestone1.9.2b4pre
followup fix for Bug 407875 - disable control when canCheckForUpdates is false instead of canUpdate. r=dolske, a=beltzner
browser/components/preferences/advanced.js
--- a/browser/components/preferences/advanced.js
+++ b/browser/components/preferences/advanced.js
@@ -398,22 +398,22 @@ var gAdvancedPane = {
    *             iii 0/1/2   t         true   
    * 
    */
 #ifdef MOZ_UPDATER
   updateAppUpdateItems: function () 
   {
     var aus = 
         Components.classes["@mozilla.org/updates/update-service;1"].
-        getService(Components.interfaces.nsIApplicationUpdateService);
+        getService(Components.interfaces.nsIApplicationUpdateService2);
 
     var enabledPref = document.getElementById("app.update.enabled");
     var enableAppUpdate = document.getElementById("enableAppUpdate");
 
-    enableAppUpdate.disabled = !aus.canUpdate || enabledPref.locked;
+    enableAppUpdate.disabled = !aus.canCheckForUpdates || enabledPref.locked;
   },
 
   /**
    * Enables/disables UI for "when updates are found" based on the values,
    * and "locked" states of associated preferences.
    */
   updateAutoItems: function () 
   {