From 8ca194790750e3f82f79b79b37a667cfb1aefd0f Mon Sep 17 00:00:00 2001 From: "shannond%netscape.com" Date: Tue, 13 Aug 2002 18:35:38 +0000 Subject: [PATCH] Bugscape 18989 - Recapture Netscape.com dialog checkbox is UNCHECK by default r=smeredith --- cck/cckwiz/iniFiles/Customize_page1.ini | 2 +- cck/cckwiz/iniFiles/Default.che | 1 - cck/cckwiz/iniFiles/MyIsp.che | 1 - cck/driver/cck.che | 1 - cck/driver/interpret.cpp | 18 ++++++++++++++++++ 5 files changed, 19 insertions(+), 4 deletions(-) diff --git a/cck/cckwiz/iniFiles/Customize_page1.ini b/cck/cckwiz/iniFiles/Customize_page1.ini index bbbe7bbd427..e17c734e03a 100644 --- a/cck/cckwiz/iniFiles/Customize_page1.ini +++ b/cck/cckwiz/iniFiles/Customize_page1.ini @@ -30,7 +30,7 @@ Help=Online;%Root%CCKHelp\customizepage1.html [Navigation Controls] -onNext= +onNext=CheckHomePageURL() Help=customize1_help.ini [Image 1] diff --git a/cck/cckwiz/iniFiles/Default.che b/cck/cckwiz/iniFiles/Default.che index 01a2361f316..9d2fb4889d7 100644 --- a/cck/cckwiz/iniFiles/Default.che +++ b/cck/cckwiz/iniFiles/Default.che @@ -26,4 +26,3 @@ Company_Name= CustomComponentPath1= CustomComponentPath2= NCIFileEditor=notepad -RecaptureHomepage=FALSE diff --git a/cck/cckwiz/iniFiles/MyIsp.che b/cck/cckwiz/iniFiles/MyIsp.che index 04be3c969d8..a3e4c270430 100644 --- a/cck/cckwiz/iniFiles/MyIsp.che +++ b/cck/cckwiz/iniFiles/MyIsp.che @@ -30,4 +30,3 @@ CustomComponentSize2= CustomComponentDesc1= CustomComponentDesc2= NCIFileEditor=notepad -RecaptureHomepage=FALSE diff --git a/cck/driver/cck.che b/cck/driver/cck.che index 18c6b940110..f7b3eddeeba 100644 --- a/cck/driver/cck.che +++ b/cck/driver/cck.che @@ -39,5 +39,4 @@ lPlatform=Windows Language=English-United States (enus) ClientVersion=7.0 CHESubVersion=0 -RecaptureHomepage=FALSE diff --git a/cck/driver/interpret.cpp b/cck/driver/interpret.cpp index 3418f8bbe13..da8193c353a 100644 --- a/cck/driver/interpret.cpp +++ b/cck/driver/interpret.cpp @@ -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);