fix 270069 status bar total and unread counts for single folder virtual folders, tbird only, sr=mscott

This commit is contained in:
bienvenu%nventure.com 2004-11-20 22:47:02 +00:00
Родитель ea033e1049
Коммит b395246cd6
2 изменённых файлов: 3 добавлений и 2 удалений

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

@ -360,7 +360,7 @@ function RerootFolder(uri, newFolder, viewType, viewFlags, sortType, sortOrder)
SetUpToolbarButtons(uri);
UpdateStatusMessageCounts(newFolder);
UpdateStatusMessageCounts(gMsgFolderSelected);
// hook for extra toolbar items
var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
@ -847,6 +847,7 @@ function FolderPaneSelectionChange()
var searchOnline = dbFolderInfo.getBooleanProperty("searchOnline", false);
// trick the view code into updating the real folder...
gCurrentVirtualFolderUri = uriToLoad;
viewDebug("uriToLoad = " + uriToLoad + "\n");
var srchFolderUri = dbFolderInfo.getCharPtrProperty("searchFolderUri");
var srchFolderUriArray = srchFolderUri.split('|');
// cross folder search

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

@ -154,7 +154,7 @@ var folderListener = {
OnItemIntPropertyChanged: function(item, property, oldValue, newValue) {
if (item == msgWindow.openFolder) {
if(property.toString() == "TotalMessages" || property.toString() == "TotalUnreadMessages") {
UpdateStatusMessageCounts(msgWindow.openFolder);
UpdateStatusMessageCounts(gMsgFolderSelected);
}
}
},