fix for bug #374150: [places] assert when I attempt to right click + bookmark a link: Couldn't select folders because no root node was available.

my fix for bug #373719 caused this regression.

r=mano
This commit is contained in:
sspitzer%mozilla.org 2007-03-16 01:51:01 +00:00
Родитель dff1bb81cc
Коммит 851a527ed4
1 изменённых файлов: 7 добавлений и 2 удалений

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

@ -331,13 +331,18 @@ var BookmarkPropertiesPanel = {
this._tm = window.opener.PlacesUtils.tm;
this._determineItemInfo();
this._initFolderTree();
// on timeout because of the corresponding setTimeout()
// in the places tree binding's constructor
var self = this;
setTimeout(function() { self._initFolderTree(); }, 0);
this._populateProperties();
this._forceHideRows();
this.validateChanges();
this._updateSize();
},
/**
* This method initializes the folder tree.
*/