зеркало из https://github.com/mozilla/pjs.git
fix 0 message counts after compacting local folder, until restart, sr=mscott 351685
This commit is contained in:
Родитель
71876bf9b9
Коммит
a88634309e
|
@ -1008,8 +1008,6 @@ NS_IMETHODIMP nsDBFolderInfo::InitFromTransferInfo(nsIDBFolderInfo *aTransferInf
|
|||
SetCharPtrProperty(transferInfo->m_properties[i]->get(), transferInfo->m_values[i]->get());
|
||||
|
||||
LoadMemberVariables();
|
||||
SetNumMessages(0);
|
||||
SetNumUnreadMessages(0);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -584,7 +584,11 @@ NS_IMETHODIMP nsMsgLocalMailFolder::GetDatabaseWithReparse(nsIUrlListener *aRepa
|
|||
&& rv != NS_MSG_ERROR_FOLDER_SUMMARY_MISSING && rv != NS_MSG_ERROR_FOLDER_SUMMARY_OUT_OF_DATE)
|
||||
return rv;
|
||||
else if (transferInfo && mDatabase)
|
||||
SetDBTransferInfo(transferInfo);
|
||||
{
|
||||
transferInfo->SetNumMessages(0);
|
||||
transferInfo->SetNumUnreadMessages(0);
|
||||
SetDBTransferInfo(transferInfo);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче