283610 - load tabs in background checkbox is inverted

This commit is contained in:
ben%bengoodger.com 2005-02-27 06:13:43 +00:00
parent e972bbc8e6
commit 718a7c782c
2 changed files with 4 additions and 3 deletions

View File

@ -51,7 +51,7 @@
<preference id="browser.link.open_external" name="browser.link.open_external" type="int"/>
<preference id="browser.link.open_newwindow" name="browser.link.open_newwindow" type="int"/>
<preference id="browser.tabs.autoHide" name="browser.tabs.autoHide" type="bool"/>
<preference id="browser.tabs.loadInBackground" name="browser.tabs.loadInBackground" type="bool"/>
<preference id="browser.tabs.loadInBackground" name="browser.tabs.loadInBackground" type="bool" inverted="true"/>
<preference id="browser.tabs.warnOnClose" name="browser.tabs.warnOnClose" type="bool"/>
</preferences>
@ -81,7 +81,7 @@
<checkbox id="hideTabBar" label="&hideTabBar.label;"
preference="browser.tabs.autoHide"/>
<checkbox id="loadInBackground" label="&loadInBackground.label;"
preference="browser.tabs.loadInBackground" reversed="true"/>
preference="browser.tabs.loadInBackground"/>
<checkbox id="warnOnClose" label="&warnOnClose.label;"
preference="browser.tabs.warnOnClose"/>
</vbox>

View File

@ -213,7 +213,8 @@
case "int":
return this._branch.getIntPref(this.name);
case "bool":
return this._branch.getBoolPref(this.name);
var val = this._branch.getBoolPref(this.name);
return this.inverted ? !val : val;
case "string":
return this._branch.getCharPref(this.name);
case "wstring":