Changeset 49

Show
Ignore:
Timestamp:
2007-01-28 20:11:21 (2 years ago)
Author:
MaierMan
Message:

prevent overwriting defFilters

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/components/filterManager.js

    r48 r49  
    205205                        return; 
    206206                } 
    207                 this.setMultiBytePref(this.pref('test'), this._test); 
    208207                this._prefs.setBoolPref(this.pref('active'), this._active); 
    209                 this._prefs.setIntPref(this.pref('type'), this._type); 
    210                 this._prefs.setBoolPref(this.pref('regex'), this._isRegex); 
    211                  
    212                 // save this last as FM will test for it. 
    213                 this.setMultiBytePref(this.pref('label'), this._label); 
    214                  
     208                 
     209                // do not change defFilters 
     210                if (!this.defFilter) { 
     211                        this.setMultiBytePref(this.pref('test'), this._test); 
     212                        this._prefs.setIntPref(this.pref('type'), this._type); 
     213                        this._prefs.setBoolPref(this.pref('regex'), this._isRegex); 
     214                 
     215                        // save this last as FM will test for it. 
     216                        this.setMultiBytePref(this.pref('label'), this._label); 
     217                } 
    215218                this._modified = false; 
    216219        },