fix 352287 crash clicking back and forth between saved search with view and normal folder, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@212043 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d26cc390f5
commit
dbf49e1164
@ -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…
x
Reference in New Issue
Block a user