зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
8326c62072
Коммит
b16ab30f08
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче