From 8ef2d8aa3f2d79114306296bb02062a26a944cb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Tue, 9 Mar 2021 22:19:26 +0100 Subject: [PATCH] Fixed: Exception on removing item --- .../jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java b/src/com/jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java index 7d5426d74..58f5dbdb7 100644 --- a/src/com/jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java +++ b/src/com/jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java @@ -1455,6 +1455,7 @@ public class TagTreeContextMenu extends JPopupMenu { } if (View.showConfirmDialog(this, confirmationMessage, mainPanel.translate("message.confirm"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) { + tagTree.clearSelection(); Map> tagsToRemoveBySwf = new HashMap<>(); Set swfsToClearCache = new HashSet<>(); @@ -1562,7 +1563,7 @@ public class TagTreeContextMenu extends JPopupMenu { for (SWF swf : swfsToClearCache) { swf.clearAllCache(); } - + mainPanel.refreshTree(); } }