mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 17:16:12 +00:00
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:
parent
525d336040
commit
813a9f0d60
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user