From 09decbae36c936c6fbbbab90422dd367abb9e44b Mon Sep 17 00:00:00 2001 From: "shrutiv%netscape.com" Date: Wed, 24 Jul 2002 18:31:38 +0000 Subject: [PATCH] Fix for bug 158373: [REG] AOD is showing up on the end user's component list (r=smeredith) --- cck/ib/ib.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cck/ib/ib.cpp b/cck/ib/ib.cpp index 2eb94918aa03..642d0f6bd199 100644 --- a/cck/ib/ib.cpp +++ b/cck/ib/ib.cpp @@ -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",