ability to install Calendar XPI as third party module - fixes bug 12744
git-svn-id: svn://10.0.0.236/trunk@117426 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -92,6 +92,43 @@ int BuildComponentList(COMPONENT *comps, int *compNum, CString iniSrcPath,
|
||||
}
|
||||
|
||||
|
||||
// add in Calendar if it exists
|
||||
|
||||
int iLastSlash = iniSrcPath.ReverseFind(_T('\\'));
|
||||
|
||||
if (iLastSlash)
|
||||
{
|
||||
CString strCalendarXPIPath = iniSrcPath.Left(iLastSlash);
|
||||
CFileStatus fs;
|
||||
|
||||
strCalendarXPIPath += "\\calendar.xpi";
|
||||
|
||||
if (CFile::GetStatus(strCalendarXPIPath,fs)) // exists
|
||||
{
|
||||
comps[*compNum].archive = CString("calendar.xpi");
|
||||
comps[*compNum].compname = CString("Component Calendar");
|
||||
comps[*compNum].name = CString("Calendar");
|
||||
comps[*compNum].desc = CString("Calendar Client");
|
||||
|
||||
comps[*compNum].selected =
|
||||
comps[*compNum].forceupgrade =
|
||||
comps[*compNum].empty = 1;
|
||||
|
||||
comps[*compNum].invisible =
|
||||
comps[*compNum].launchapp =
|
||||
comps[*compNum].additional =
|
||||
comps[*compNum].disabled =
|
||||
comps[*compNum].uncompress =
|
||||
comps[*compNum].downloadonly =
|
||||
comps[*compNum].unselected = 0;
|
||||
|
||||
(*compNum)++;
|
||||
invNum++;
|
||||
|
||||
} // file exists
|
||||
|
||||
} // slash found
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user