mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
AsyncTreeModel: remove replaced instance from map
This commit is contained in:
@@ -770,6 +770,7 @@ public final class AsyncTreeModel extends AbstractTreeModel implements Identifia
|
||||
if (object == node.object) return;
|
||||
// always use new instance of user's object, because
|
||||
// some trees provide equal nodes with different behavior
|
||||
map.remove(node.object);
|
||||
node.updatePaths(node.object, object);
|
||||
node.object = object;
|
||||
map.put(object, node); // update key
|
||||
|
||||
Reference in New Issue
Block a user