Bug 287392: paste in Bookmark Manager is very slow (O(n^2)), patch by Jan Darmochwal <jdarmochwal@gmx.de>, r+sr=neil

This commit is contained in:
gavin%gavinsharp.com 2006-07-18 16:32:56 +00:00
Родитель 74c01bae94
Коммит d934a4a201
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -372,12 +372,14 @@
<method name="updateTreeSelection">
<body><![CDATA[
this.treeBoxObject.view.selection.selectEventsSuppressed = true;
this.treeBoxObject.view.selection.clearSelection();
for (var i=0; i<this._itemToBeToggled.length; ++i) {
index = this.treeBuilder.getIndexOfResource(this._itemToBeToggled[i]);
if (index >=0)
this.treeBoxObject.view.selection.toggleSelect(index);
}
this.treeBoxObject.view.selection.selectEventsSuppressed = false;
]]></body>
</method>