Fix for bug 158373: [REG] AOD is showing up on the end user's component

list (r=smeredith)
This commit is contained in:
shrutiv%netscape.com 2002-07-24 18:31:38 +00:00
Родитель 5fe829ab70
Коммит 09decbae36
1 изменённых файлов: 8 добавлений и 3 удалений

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

@ -1839,10 +1839,15 @@ void invisible()
if ( (strAttributes.Find("SELECTED")) != -1 )
strAttributes.Replace("SELECTED", "UNSELECTED");
}
WritePrivateProfileString(Components[i].compname, "Attributes",
if (strcmp(strAttributes, "SELECTED") == 0)
// Include INVISIBLE attribute for AOD component
WritePrivateProfileString(Components[i].compname, "Attributes",
"SELECTED|INVISIBLE", iniDstPath);
else
WritePrivateProfileString(Components[i].compname, "Attributes",
strAttributes, iniDstPath);
componentOrder++;
componentOrder++;
}
else
WritePrivateProfileString(Components[i].compname, "Attributes",