Fix for bug 101658: leaving Auto proxy URL blank will cause browser to

crash. (r=tao)
Displaying error message if auto proxy URL is blank.
This commit is contained in:
shrutiv%netscape.com 2001-10-02 01:14:22 +00:00
parent 2db7201caf
commit d3beb86682
2 changed files with 18 additions and 2 deletions

View File

@ -25,7 +25,7 @@ Caption=2nd level node
Help=Online;%Root%CCKHelp\proxy.html
[Navigation Controls]
onNext=
onNext=IsAutourlempty
Help=ProxyHelp.ini
[Image 1999]
@ -333,4 +333,5 @@ Start_x=20
Start_y=220
Width=250
Height=12
onCommand=IsAutourlempty

View File

@ -658,6 +658,21 @@ BOOL CInterpret::interpret(CString cmds, WIDGET *curWidget)
}
}
}
else if (strcmp(pcmd, "IsAutourlempty") == 0)
{
CString proxyConfigoption = GetGlobal("radioGroup2");
if (proxyConfigoption == "3")
{
WIDGET *wid;
wid = findWidget("autoproxyurl");
CString autourl = CWizardUI::GetScreenValue(wid);
if (autourl == "")
{
AfxMessageBox("Please enter a URL for automatic proxy configuration", MB_OK);
return FALSE;
}
}
}
else if (strcmp(pcmd, "IsSamedomain") == 0)
{
CString ispDomainName = GetGlobal("DomainName");
@ -700,7 +715,7 @@ BOOL CInterpret::interpret(CString cmds, WIDGET *curWidget)
}
}
else if(strcmp(pcmd, "IsPortnumEmpty") ==0)
else if(strcmp(pcmd, "IsPortnumEmpty") ==0)
{
WIDGET *wid;
wid = curWidget;