mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-1897 fixed issue where opening a program didn't apply an existing datatypes tree filter to the new program's datatypes.
This commit is contained in:
parent
a33cb658dd
commit
06dddaea18
1 changed files with 7 additions and 4 deletions
|
@ -1236,10 +1236,13 @@ public class GTree extends JPanel implements BusyListener {
|
|||
* @param newNode the node that may cause the tree to refilter.
|
||||
*/
|
||||
public void refilterLater(GTreeNode newNode) {
|
||||
if (isFilteringEnabled && filter != null) {
|
||||
if (filter.acceptsNode(newNode)) {
|
||||
filterUpdateManager.updateLater();
|
||||
}
|
||||
if (!isFilteringEnabled || filter == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
// non-leaf nodes may have children that would require filtering
|
||||
if (!newNode.isLeaf() || filter.acceptsNode(newNode)) {
|
||||
filterUpdateManager.updateLater();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue