fix 357840 going into quicksearch and leaving quicksearch, when grouped, makes us lose twisties on groups, sr=mscott

This commit is contained in:
bienvenu%nventure.com 2006-10-26 22:51:39 +00:00
Родитель 96d5e4b54e
Коммит e8e9061ce1
1 изменённых файлов: 4 добавлений и 3 удалений

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

@ -186,9 +186,10 @@ function createQuickSearchView()
}
// if grouped by sort, turn that off, as well as threaded, since we don't
// group quick search results yet.
if (gDBView.viewFlags & nsMsgViewFlagsType.kGroupBySort)
gDBView.viewFlags &= ~(nsMsgViewFlagsType.kGroupBySort | nsMsgViewFlagsType.kThreadedDisplay);
CreateDBView(gDBView.msgFolder, (gXFVirtualFolderTerms) ? nsMsgViewType.eShowVirtualFolderResults : nsMsgViewType.eShowQuickSearchResults, gDBView.viewFlags, gDBView.sortType, gDBView.sortOrder);
var viewFlags = gDBView.viewFlags;
if (viewFlags & nsMsgViewFlagsType.kGroupBySort)
viewFlags &= ~(nsMsgViewFlagsType.kGroupBySort | nsMsgViewFlagsType.kThreadedDisplay);
CreateDBView(gDBView.msgFolder, (gXFVirtualFolderTerms) ? nsMsgViewType.eShowVirtualFolderResults : nsMsgViewType.eShowQuickSearchResults, viewFlags, gDBView.sortType, gDBView.sortOrder);
}
}