Bug 408860 - Library forward button broken and back button toggles last two selected items. r=dietrich. a=beltzner.

This commit is contained in:
mozilla.mano%sent.com 2008-04-21 22:07:05 +00:00
Родитель c143e0c7d4
Коммит 96adf85302
1 изменённых файлов: 8 добавлений и 3 удалений

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

@ -140,6 +140,10 @@ PlacesTreeView.prototype = {
* when a tree is detached to clear the list.
*/
_buildVisibleList: function PTV__buildVisibleList() {
var selection = this.selection;
if (selection)
selection.selectEventsSuppressed = true;
if (this._result) {
// Any current visible elements need to be marked as invisible.
for (var i = 0; i < this._visibleElements.length; i++) {
@ -163,11 +167,12 @@ PlacesTreeView.prototype = {
// this triggers containerOpened which then builds the visible
// section
rootNode.containerOpen = true;
return;
}
this.invalidateContainer(rootNode);
else
this.invalidateContainer(rootNode);
}
if (selection)
selection.selectEventsSuppressed = false;
},
/**