Fixed export selection

This commit is contained in:
Jindra Petřík
2022-11-20 21:38:07 +01:00
parent af6c4a5beb
commit 74b212e328
3 changed files with 14 additions and 4 deletions

View File

@@ -1674,9 +1674,9 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
private List<TreeItem> getSelection(Openable openable, List<TreeItem> selection) {
if (currentView == MainPanel.VIEW_RESOURCES) {
return selection == null ? tagTree.getSelection(openable) : tagTree.getSelection(openable, selection);
return selection == null ? tagTree.getSelection(openable) : tagTree.getSelectionAndAllSubs(openable, selection);
} else if (currentView == MainPanel.VIEW_TAGLIST) {
return selection == null ? tagListTree.getSelection(openable) : tagListTree.getSelection(openable, selection);
return selection == null ? tagListTree.getSelection(openable) : tagListTree.getSelectionAndAllSubs(openable, selection);
}
return new ArrayList<>();
}