mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Fix/workaround for bug 51903 - asserts switching pref panels. r=hyatt.
This commit is contained in:
parent
d6335b8f1d
commit
d779349920
@ -387,16 +387,22 @@
|
||||
parentNode.currentItem = t.parentNode.parentNode;
|
||||
}
|
||||
else {
|
||||
parentNode.suppressOnSelect = true;
|
||||
var selectedItems = parentNode.selectedItems;
|
||||
var didSuppressSelect = false;
|
||||
var i = 0;
|
||||
while (i < selectedItems.length) {
|
||||
if (selectedItems[i] != t.parentNode.parentNode)
|
||||
if (selectedItems[i] != t.parentNode.parentNode) {
|
||||
if (!didSuppressSelect) {
|
||||
parentNode.suppressOnSelect = true;
|
||||
didSuppressSelect = true;
|
||||
}
|
||||
parentNode.removeItemFromSelection(selectedItems[i]);
|
||||
}
|
||||
else
|
||||
i++;
|
||||
}
|
||||
parentNode.suppressOnSelect = false;
|
||||
if (didSuppressSelect)
|
||||
parentNode.suppressOnSelect = false;
|
||||
}
|
||||
}
|
||||
]]>
|
||||
|
Loading…
Reference in New Issue
Block a user