167380 r=cavin sr=bienvenu fix regression in quick search where it doesn't preserve selection if you

select a msg before results are sorted.
This commit is contained in:
naving%netscape.com 2002-09-13 22:40:24 +00:00
parent 525d336040
commit 813a9f0d60

View File

@ -116,8 +116,11 @@ nsMsgQuickSearchDBView::OnSearchDone(nsresult status)
{
if (m_sortType != nsMsgViewSortType::byThread)//we do not find levels for the results.
{
nsMsgKeyArray preservedSelection;
SaveAndClearSelection(&preservedSelection);
m_sortValid = PR_FALSE; //sort the results
Sort(m_sortType, m_sortOrder);
RestoreSelection(&preservedSelection);
}
return NS_OK;
}