зеркало из https://github.com/mozilla/pjs.git
more on undo work - remove transaction manager from folder array after retrieving it
This commit is contained in:
Родитель
ba66854635
Коммит
002dc01b7b
|
@ -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++) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче