Changeset b467bf


Ignore:
Timestamp:
Nov 26, 2011, 9:57:04 PM (8 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
eacce6
Parents:
79c810
Message:

drop local pref-changes before reusing compose-window

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • content/v_identity.js

    r79c810 rb467bf  
    307307        main.initSystemStage1();
    308308       
     309        vI.vIprefs.dropLocalChanges();
     310
    309311        // stateListener only works in reply-cases
    310312        // so activate stage2 in reply-cases trough StateListener
  • modules/vI_prefs.js

    r79c810 rb467bf  
    128128        }
    129129      }
     130    },
     131    dropLocalChanges: function() {
     132      for each (let [aPrefName, aPrefValue] in Iterator(this._localPrefs)) {
     133        this._retrievePref(aPrefName);
     134        if (aPrefValue != this._localPrefs[aPrefName]) {
     135          for each (let [, prefObserver] in Iterator(this._localObservers)) {
     136            if (prefObserver.pref == aPrefName) {
     137              prefObserver.observe(prefObserver.context, aPrefValue, "nsPref:changed", aPrefName);
     138            }
     139          }
     140        }
     141      }
    130142    }
    131143}
Note: See TracChangeset for help on using the changeset viewer.