mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 11:13:29 +00:00
fix 352287 crash clicking back and forth between saved search with view and normal folder, sr=mscott
This commit is contained in:
parent
6284bae366
commit
8963c4e9a7
@ -262,16 +262,17 @@ nsMsgQuickSearchDBView::OnSearchDone(nsresult status)
|
||||
}
|
||||
nsMsgKey *staleHits;
|
||||
PRUint32 numBadHits;
|
||||
m_db->RefreshCache(searchUri, m_hdrHits.Count(), keyArray.GetArray(), &numBadHits, &staleHits);
|
||||
for (i = 0; i < numBadHits; i++)
|
||||
if (m_db)
|
||||
{
|
||||
nsMsgViewIndex staleHitIndex = FindKey(staleHits[i], PR_TRUE);
|
||||
if (staleHitIndex != nsMsgViewIndex_None)
|
||||
RemoveByIndex(staleHitIndex);
|
||||
m_db->RefreshCache(searchUri, m_hdrHits.Count(), keyArray.GetArray(), &numBadHits, &staleHits);
|
||||
for (i = 0; i < numBadHits; i++)
|
||||
{
|
||||
nsMsgViewIndex staleHitIndex = FindKey(staleHits[i], PR_TRUE);
|
||||
if (staleHitIndex != nsMsgViewIndex_None)
|
||||
RemoveByIndex(staleHitIndex);
|
||||
}
|
||||
delete [] staleHits;
|
||||
}
|
||||
delete [] staleHits;
|
||||
// we also need to add new hits - should we have RefreshCache calculate these?
|
||||
// or just look through the view for each hit to see if we're already displaying it?
|
||||
}
|
||||
if (m_sortType != nsMsgViewSortType::byThread)//we do not find levels for the results.
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user