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

This commit is contained in:
shrutiv%netscape.com 2001-12-07 19:52:01 +00:00
Родитель 7550ac6b77
Коммит cfde953c9f
2 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -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);

Просмотреть файл

@ -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