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
parent 0540f71d01
commit 3e20e61574
2 changed files with 4 additions and 3 deletions

View File

@ -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);
}

View File

@ -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++) {