136636 r=sspitzer sr=bienvenu a=rjesup. StartBatch is called twice in some cases, so don't set m_ownFolderStream to false. fixes regressions - moving msgs/ filter corrupting Inbox.
git-svn-id: svn://10.0.0.236/trunk@118638 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
e374c56f6e
commit
87c44ff77a
@ -240,13 +240,11 @@ nsresult nsMailDatabase::OnNewPath (nsFileSpec &newPath)
|
||||
NS_IMETHODIMP nsMailDatabase::StartBatch()
|
||||
{
|
||||
#ifndef XP_MAC
|
||||
if (!m_folderStream)
|
||||
if (!m_folderStream) //only if we create a stream, set m_ownFolderStream to true.
|
||||
{
|
||||
m_folderStream = new nsIOFileStream(nsFileSpec(*m_folderSpec));
|
||||
m_ownFolderStream = PR_TRUE;
|
||||
}
|
||||
else
|
||||
m_ownFolderStream = PR_FALSE; //better to set it, if EndBatch was not called last time
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user