mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 730596 - Make the HTML Panel context menu more generic (should work even if the HTML Panel is closed); r=rcampbell
This commit is contained in:
parent
0ff3ebb15f
commit
f2d5d6620b
@ -870,7 +870,8 @@ InspectorUI.prototype = {
|
||||
let parent = this.selection.parentNode;
|
||||
|
||||
// remove the node from the treepanel
|
||||
this.treePanel.deleteChildBox(selection);
|
||||
if (this.treePanel.isOpen())
|
||||
this.treePanel.deleteChildBox(selection);
|
||||
|
||||
// remove the node from content
|
||||
parent.removeChild(selection);
|
||||
|
Loading…
Reference in New Issue
Block a user