зеркало из https://github.com/mozilla/gecko-dev.git
Backing out fix for bug 16908: Reorder additional components
This commit is contained in:
Родитель
6a80f9e551
Коммит
9fc8b35f28
|
@ -2214,32 +2214,7 @@ void invisible()
|
|||
tempWidget = findWidget("SelectedComponents");
|
||||
CString component;
|
||||
|
||||
// Place calendar component after MailNews
|
||||
int mailindex, calendarindex;
|
||||
BOOL foundcalendar = FALSE;
|
||||
for (int i=0; i<numComponents; i++)
|
||||
{
|
||||
if ((Components[i].name) == "Mail & Instant Messaging")
|
||||
mailindex = i;
|
||||
if ((Components[i].name) == "Calendar")
|
||||
{
|
||||
calendarindex = i;
|
||||
foundcalendar = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (foundcalendar == TRUE)
|
||||
{
|
||||
COMPONENT tempComponents[100];
|
||||
for(int i=mailindex+1, int j=0; i==calendarindex; i++, j++)
|
||||
tempComponents[j] = Components[i];
|
||||
int jcnt = j;
|
||||
Components[mailindex+1] = Components[calendarindex];
|
||||
for (j=0,i=mailindex+2; j<jcnt; j++,i++)
|
||||
Components[i] = tempComponents[j];
|
||||
}
|
||||
|
||||
for (i=0; i<numComponents; i++)
|
||||
{
|
||||
if (Components[i].selected)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче