mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Bug 189007 Switch group without clearing QuickSearch resets view r=bienvenu sr=Henry.Jia
This commit is contained in:
parent
83b8afa950
commit
b14985e0c8
@ -1,4 +1,4 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
@ -1722,8 +1722,6 @@ NS_IMETHODIMP nsMsgDBView::Open(nsIMsgFolder *folder, nsMsgViewSortTypeValue sor
|
||||
m_sortOrder = sortOrder;
|
||||
m_sortType = sortType;
|
||||
|
||||
nsMsgViewTypeValue viewType;
|
||||
|
||||
if (folder) // search view will have a null folder
|
||||
{
|
||||
nsCOMPtr <nsIDBFolderInfo> folderInfo;
|
||||
@ -1731,12 +1729,6 @@ NS_IMETHODIMP nsMsgDBView::Open(nsIMsgFolder *folder, nsMsgViewSortTypeValue sor
|
||||
NS_ENSURE_SUCCESS(rv,rv);
|
||||
m_db->AddListener(this);
|
||||
m_folder = folder;
|
||||
// save off sort type and order, view type and flags
|
||||
folderInfo->SetSortType(sortType);
|
||||
folderInfo->SetSortOrder(sortOrder);
|
||||
folderInfo->SetViewFlags(viewFlags);
|
||||
GetViewType(&viewType);
|
||||
folderInfo->SetViewType(viewType);
|
||||
// determine if we are in a news folder or not.
|
||||
// if yes, we'll show lines instead of size, and special icons in the thread pane
|
||||
nsCOMPtr <nsIMsgIncomingServer> server;
|
||||
|
@ -68,6 +68,13 @@ NS_IMETHODIMP nsMsgThreadedDBView::Open(nsIMsgFolder *folder, nsMsgViewSortTypeV
|
||||
nsCOMPtr <nsIDBFolderInfo> dbFolderInfo;
|
||||
rv = m_db->GetDBFolderInfo(getter_AddRefs(dbFolderInfo));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
// save off sort type and order, view type and flags
|
||||
dbFolderInfo->SetSortType(m_sortType);
|
||||
dbFolderInfo->SetSortOrder(m_sortOrder);
|
||||
dbFolderInfo->SetViewFlags(m_viewFlags);
|
||||
nsMsgViewTypeValue viewType;
|
||||
GetViewType(&viewType);
|
||||
dbFolderInfo->SetViewType(viewType);
|
||||
if (m_viewFlags & nsMsgViewFlagsType::kUnreadOnly)
|
||||
{
|
||||
// Set unread msg size + extra entries to avoid reallocation on new mail.
|
||||
|
Loading…
Reference in New Issue
Block a user