fix hang doing a quick search in threaded mode with a folder/newsgroup with corrupt threading, sr=mscott 332883

This commit is contained in:
bienvenu%nventure.com 2006-09-19 23:03:06 +00:00
Родитель 933ca5702a
Коммит fb8421c3ee
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -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++;
} }
} }