Fixed Exception on closing multiple SWFs

This commit is contained in:
Jindra Petřík
2022-12-18 00:03:01 +01:00
parent 2b2a9bfbed
commit 79d304495e
2 changed files with 3 additions and 2 deletions

View File

@@ -1165,7 +1165,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
AbstractTagTreeModel ttm = tagTree.getFullModel();
if (ttm != null) {
if (getCurrentSwf() == null) {
tagTree.setSelectionPath(ttm.getTreePath(ttm.getRoot()));
tagTree.clearSelection();
}
ttm.updateSwfs(e);
tagTree.expandRoot();
@@ -1185,7 +1185,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
ttm = tagListTree.getFullModel();
if (ttm != null) {
if (getCurrentSwf() == null) {
tagListTree.setSelectionPath(ttm.getTreePath(ttm.getRoot()));
tagListTree.clearSelection();
}
ttm.updateSwfs(e);
tagListTree.expandRoot();