зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
74c01bae94
Коммит
d934a4a201
|
@ -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>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче