зеркало из https://github.com/mozilla/gecko-dev.git
Bug 311261 Threaded mail view in Virtual Folders is not possible
p=me r=neil.parkwaycc.co.uk sr=bienvenu
This commit is contained in:
Родитель
6c15f9b840
Коммит
ecc2c57dcd
|
@ -873,9 +873,12 @@ function FolderPaneSelectionChange()
|
|||
var msgDatabase = msgFolder.getMsgDatabase(msgWindow);
|
||||
if (msgDatabase)
|
||||
{
|
||||
gSearchSession = null;
|
||||
var dbFolderInfo = msgDatabase.dBFolderInfo;
|
||||
sortType = dbFolderInfo.sortType;
|
||||
sortOrder = dbFolderInfo.sortOrder;
|
||||
viewType = dbFolderInfo.viewType;
|
||||
viewFlags = dbFolderInfo.viewFlags;
|
||||
if (folderFlags & MSG_FOLDER_FLAG_VIRTUAL)
|
||||
{
|
||||
viewType = nsMsgViewType.eShowQuickSearchResults;
|
||||
|
@ -900,7 +903,6 @@ function FolderPaneSelectionChange()
|
|||
}
|
||||
else
|
||||
{
|
||||
gSearchSession = null;
|
||||
uriToLoad = srchFolderUri;
|
||||
// we need to load the db for the actual folder so that many hdrs to download
|
||||
// will return false...
|
||||
|
@ -913,12 +915,6 @@ function FolderPaneSelectionChange()
|
|||
// gSearchInput.showingSearchCriteria = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
gSearchSession = null;
|
||||
viewFlags = dbFolderInfo.viewFlags;
|
||||
viewType = dbFolderInfo.viewType;
|
||||
}
|
||||
msgDatabase = null;
|
||||
dbFolderInfo = null;
|
||||
}
|
||||
|
|
|
@ -157,7 +157,7 @@ function createQuickSearchView()
|
|||
var saveViewSearchListener = gDBView.QueryInterface(Components.interfaces.nsIMsgSearchNotify);
|
||||
gSearchSession.unregisterListener(saveViewSearchListener);
|
||||
}
|
||||
CreateDBView(gDBView.msgFolder, (gXFVirtualFolderTerms) ? nsMsgViewType.eShowVirtualFolderResults : nsMsgViewType.eShowQuickSearchResults, nsMsgViewFlagsType.kNone, gDBView.sortType, gDBView.sortOrder);
|
||||
CreateDBView(gDBView.msgFolder, (gXFVirtualFolderTerms) ? nsMsgViewType.eShowVirtualFolderResults : nsMsgViewType.eShowQuickSearchResults, gDBView.viewFlags, gDBView.sortType, gDBView.sortOrder);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче