зеркало из https://github.com/mozilla/pjs.git
Bugscape 18989 - Recapture Netscape.com dialog checkbox is UNCHECK by default
r=smeredith
This commit is contained in:
Родитель
1baf29f04e
Коммит
8ca1947907
|
@ -30,7 +30,7 @@ Help=Online;%Root%CCKHelp\customizepage1.html
|
|||
|
||||
|
||||
[Navigation Controls]
|
||||
onNext=
|
||||
onNext=CheckHomePageURL()
|
||||
Help=customize1_help.ini
|
||||
|
||||
[Image 1]
|
||||
|
|
|
@ -26,4 +26,3 @@ Company_Name=
|
|||
CustomComponentPath1=
|
||||
CustomComponentPath2=
|
||||
NCIFileEditor=notepad
|
||||
RecaptureHomepage=FALSE
|
||||
|
|
|
@ -30,4 +30,3 @@ CustomComponentSize2=
|
|||
CustomComponentDesc1=
|
||||
CustomComponentDesc2=
|
||||
NCIFileEditor=notepad
|
||||
RecaptureHomepage=FALSE
|
||||
|
|
|
@ -39,5 +39,4 @@ lPlatform=Windows
|
|||
Language=English-United States (enus)
|
||||
ClientVersion=7.0
|
||||
CHESubVersion=0
|
||||
RecaptureHomepage=FALSE
|
||||
|
||||
|
|
|
@ -1471,6 +1471,24 @@ BOOL CInterpret::interpret(CString cmds, WIDGET *curWidget)
|
|||
// the ShowInSection attribute are left alone.
|
||||
ShowSection(curWidget);
|
||||
}
|
||||
else if (strcmp(pcmd, "CheckHomePageURL") == 0)
|
||||
{
|
||||
CString str;
|
||||
|
||||
//check home page url settings
|
||||
|
||||
str = GetGlobal("HomePageURL");
|
||||
|
||||
//if URL is set (and not the default string),
|
||||
//uncheck the RecaptureHomepage checkbox
|
||||
|
||||
if (str.GetLength() && str.CompareNoCase("http://home.netscape.com") != 0)
|
||||
SetGlobal("RecaptureHomepage", "FALSE");
|
||||
else
|
||||
SetGlobal("RecaptureHomepage", "TRUE");
|
||||
}
|
||||
|
||||
|
||||
else if (strcmp(pcmd, "OpenPrefTreeItem") == 0)
|
||||
{
|
||||
WIDGET *w = findWidget(parms);
|
||||
|
|
Загрузка…
Ссылка в новой задаче