mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 14:47:31 +09:00
[minor fix] Places - bookmarks - treeView.js - 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsINavHistoryContainerResultNode.getChildIndex]
This commit is contained in:
parent
17a44dcd1d
commit
6b5f1cedc6
1 changed files with 3 additions and 1 deletions
|
|
@ -170,7 +170,9 @@ PlacesTreeView.prototype = {
|
||||||
let row = -1;
|
let row = -1;
|
||||||
let useNodeIndex = typeof(aNodeIndex) == "number";
|
let useNodeIndex = typeof(aNodeIndex) == "number";
|
||||||
if (parent == this._rootNode) {
|
if (parent == this._rootNode) {
|
||||||
row = useNodeIndex ? aNodeIndex : this._rootNode.getChildIndex(aNode);
|
if (aNode instanceof Ci.nsINavHistoryResultNode) {
|
||||||
|
row = useNodeIndex ? aNodeIndex : this._rootNode.getChildIndex(aNode);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (useNodeIndex && typeof(aParentRow) == "number") {
|
else if (useNodeIndex && typeof(aParentRow) == "number") {
|
||||||
// If we have both the row of the parent node, and the node's index, we
|
// If we have both the row of the parent node, and the node's index, we
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue