more on undo work - remove transaction manager from folder array after retrieving it

This commit is contained in:
jefft%netscape.com 1999-06-15 13:08:12 +00:00
Родитель ba66854635
Коммит 002dc01b7b
2 изменённых файлов: 4 добавлений и 3 удалений

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

@ -454,12 +454,10 @@ nsMessenger::DoCommand(nsIRDFCompositeDataSource* db, char *command,
rv = rdfService->GetResource(command, getter_AddRefs(commandResource));
if(NS_SUCCEEDED(rv))
{
// ** jt - temporary solution for pickybacking the undo manager into
// the nsISupportArray
if (mTxnMgr)
srcArray->InsertElementAt(mTxnMgr, 0);
rv = db->DoCommand(srcArray, commandResource, argumentArray);
}

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

@ -461,7 +461,10 @@ nsMsgFolderDataSource::DoCommand(nsISupportsArray/*<nsIRDFResource>*/* aSources,
supports = getter_AddRefs(aSources->ElementAt(0));
transactionManager = do_QueryInterface(supports, &rv);
if (NS_SUCCEEDED(rv) && transactionManager)
i = 1;
{
aSources->RemoveElementAt(0);
cnt--;
}
}
for ( ; i < cnt; i++) {