mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 417042 - "Moving mouse over bookmark folders in Places Library generates huge amount of queries" (Fix problem with drag and drop) [p=ondrej@allpeers.com (Ondrej Brablc) r=Mano a=blocking-firefox3+]
This commit is contained in:
parent
8af233fc81
commit
c90c1d0a47
@ -297,8 +297,8 @@ PlacesTreeView.prototype = {
|
||||
continue;
|
||||
|
||||
for (var nodeIndex = min.value; nodeIndex <= lastIndex; nodeIndex++)
|
||||
previouslySelectedNodes.push({ node: this._visibleElements[nodeIndex],
|
||||
oldIndex: nodeIndex });
|
||||
previouslySelectedNodes.push(
|
||||
{ node: this._visibleElements[nodeIndex].node, oldIndex: nodeIndex });
|
||||
}
|
||||
|
||||
// Mark the removes as invisible
|
||||
@ -557,7 +557,8 @@ PlacesTreeView.prototype = {
|
||||
}
|
||||
|
||||
aItem.viewIndex = newViewIndex;
|
||||
this._visibleElements.splice(newViewIndex, 0, aItem);
|
||||
this._visibleElements.splice(newViewIndex, 0,
|
||||
{ node: aItem, properties: null });
|
||||
for (var i = newViewIndex + 1;
|
||||
i < this._visibleElements.length; i ++) {
|
||||
this._visibleElements[i].node.viewIndex = i;
|
||||
|
Loading…
Reference in New Issue
Block a user