fix for #111895. newsgroups not properly sorted by thread.

r=bienvenu,sr=sspitzer,a=asa.  thanks to Mark Hammond for the fix.
This commit is contained in:
sspitzer%netscape.com 2002-03-02 01:20:32 +00:00
Родитель 8326c62072
Коммит b16ab30f08
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -639,11 +639,8 @@ nsresult nsMsgThreadedDBView::OnNewHeader(nsMsgKey newKey, nsMsgKey aParentKey,
return rv;
}
nsMsgViewIndex nsMsgThreadedDBView::GetInsertInfoForNewHdr(nsIMsgDBHdr *newHdr, nsMsgViewIndex threadIndex, PRInt32 targetLevel)
nsMsgViewIndex nsMsgThreadedDBView::GetInsertInfoForNewHdr(nsIMsgDBHdr *newHdr, nsMsgViewIndex parentIndex, PRInt32 targetLevel)
{
nsMsgKey threadParent;
newHdr->GetThreadParent(&threadParent);
nsMsgViewIndex parentIndex = m_keys.FindIndex(threadParent, threadIndex);
PRInt32 viewSize = GetSize();
nsMsgViewIndex insertIndex = parentIndex + 1;
if (parentIndex != nsMsgViewIndex_None)