mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 18:51:28 +00:00
more on undo work - remove transaction manager from folder array after retrieving it
This commit is contained in:
parent
0540f71d01
commit
3e20e61574
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user