Changeset 045bfd


Ignore:
Timestamp:
Oct 5, 2010, 1:53:37 PM (10 years ago)
Author:
rene <just@…>
Branches:
ng_0.6, ng_0.8, ng_0.9
Children:
dd1f45
Parents:
c65ba0
Message:

bugfix: use local prefroot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_upgrade.js

    rc65ba0 r045bfd  
    116116   
    117117    __removeExtraAddedHeaders : function(currentVersion) {
    118         if (vI_upgrade.versionChecker.compare(currentVersion, "0.6.9") < 0 &&
    119                 vI_prepareHeader.prefroot.getCharPref("mailnews.headers.extraExpandedHeaders") != "") {
     118        var prefroot = Components.classes["@mozilla.org/preferences-service;1"]
     119            .getService(Components.interfaces.nsIPrefService)
     120            .getBranch(null);
     121       
     122        vI_notificationBar.dump("extension-upgrade __removeExtraAddedHeaders " + currentVersion + "\n");
     123        if ((!currentVersion || vI_upgrade.versionChecker.compare(currentVersion, "0.6.9") < 0) &&
     124                prefroot.getCharPref("mailnews.headers.extraExpandedHeaders") != "") {
    120125            // clean extraExpandedHeaders once, because the whole header-saving and restoring was broken too long
    121             vI_prepareHeader.prefroot.setCharPref("mailnews.headers.extraExpandedHeaders", "")
     126            vI_notificationBar.dump("cleaning extraExpandedHeaders\n");
     127            prefroot.setCharPref("mailnews.headers.extraExpandedHeaders", "")
    122128            vI_notificationBar.dump("cleaned extraExpandedHeaders\n");
    123129        }
     130        vI_notificationBar.dump("extension-upgrade __removeExtraAddedHeaders done.\n\n");
    124131    },
    125132   
Note: See TracChangeset for help on using the changeset viewer.