fix count changes in the folder pane, r=philor, 492951

This commit is contained in:
David Bienvenu 2009-05-14 16:38:13 -04:00
Родитель d5982933eb
Коммит 86507812ef
1 изменённых файлов: 6 добавлений и 4 удалений

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

@ -1278,12 +1278,14 @@ let gFolderTreeView = {
OnItemPropertyChanged: function(aItem, aProperty, aOld, aNew) {},
OnItemIntPropertyChanged: function(aItem, aProperty, aOld, aNew) {
// we want to rebuild only if:
if (this._mode == "unread" && // we're doing unread mode
aProperty == "TotalUnreadMessages" && aOld == 0 && // we have a new unread folder
!this.getIndexOfFolder(aItem)) // we don't already have it
// we want to rebuild only if we're in unread mode, and we have a
// newly unread folder, and we didn't already have the folder.
if (this._mode == "unread" &&
aProperty == "TotalUnreadMessages" && aOld == 0 &&
!this.getIndexOfFolder(aItem)) {
this._rebuild();
return;
}
if (aItem instanceof Components.interfaces.nsIMsgFolder)
{