зеркало из https://github.com/mozilla/gecko-dev.git
fix hang doing a quick search in threaded mode with a folder/newsgroup with corrupt threading, sr=mscott 332883
This commit is contained in:
Родитель
933ca5702a
Коммит
fb8421c3ee
|
@ -376,7 +376,11 @@ nsresult nsMsgQuickSearchDBView::GetFirstMessageHdrToDisplayInThread(nsIMsgThrea
|
||||||
rv = m_db->GetMsgHdrForKey(parentId, getter_AddRefs(parent));
|
rv = m_db->GetMsgHdrForKey(parentId, getter_AddRefs(parent));
|
||||||
if (parent)
|
if (parent)
|
||||||
{
|
{
|
||||||
|
nsMsgKey saveParentId = parentId;
|
||||||
parent->GetThreadParent(&parentId);
|
parent->GetThreadParent(&parentId);
|
||||||
|
// message is it's own parent - bad, let's break out of here.
|
||||||
|
if (parentId == saveParentId)
|
||||||
|
break;
|
||||||
level++;
|
level++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче