Fixed: Exception on removing item

This commit is contained in:
Jindra Petřík
2021-03-09 22:19:26 +01:00
parent 600d0669a7
commit 8ef2d8aa3f

View File

@@ -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<SWF, List<Tag>> tagsToRemoveBySwf = new HashMap<>();
Set<SWF> swfsToClearCache = new HashSet<>();
@@ -1562,7 +1563,7 @@ public class TagTreeContextMenu extends JPopupMenu {
for (SWF swf : swfsToClearCache) {
swf.clearAllCache();
}
mainPanel.refreshTree();
}
}