Fix for bugscape 10911: Allow removal of AOL desktop icon (r=tao)

git-svn-id: svn://10.0.0.236/trunk@110017 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
shrutiv%netscape.com 2001-12-07 19:52:01 +00:00
parent 4c08064fc5
commit 2f20cdebbd
2 changed files with 8 additions and 1 deletions

View File

@ -60,6 +60,9 @@ int BuildComponentList(COMPONENT *comps, int *compNum, CString iniSrcPath,
GetPrivateProfileString(component, "Attributes", "",
attr, MAX_SIZE, iniSrcPath);
if (strcmp(component, "Component AOD") == 0)
strcpy(attr, "SELECTED");
comps[*compNum].archive = CString(archive);
comps[*compNum].compname = component;
comps[*compNum].name = CString(name);

View File

@ -966,13 +966,17 @@ void invisible()
WritePrivateProfileString(Components[i].compname, "Attributes",
"UNSELECTED|ADDITIONAL|FORCE_UPGRADE", iniDstPath);
else if (!(Components[i].disabled) && !(Components[i].additional) &&
!(Components[i].invisible))
Components[i].forceupgrade && !(Components[i].invisible))
WritePrivateProfileString(Components[i].compname, "Attributes",
"SELECTED|FORCE_UPGRADE", iniDstPath);
else if (Components[i].additional && Components[i].launchapp &&
Components[i].uncompress && !(Components[i].invisible))
WritePrivateProfileString(Components[i].compname, "Attributes",
"SELECTED|UNCOMPRESS|LAUNCHAPP|ADDITIONAL", iniDstPath);
else if (!(Components[i].additional) &&
!(Components[i].forceupgrade) && !(Components[i].invisible))
WritePrivateProfileString(Components[i].compname, "Attributes",
"SELECTED|INVISIBLE", iniDstPath);
componentOrder++;
}
else