Fixed: #1660 Empty thumbnail view on remove item

This commit is contained in:
Jindra Petřík
2021-04-05 16:56:59 +02:00
parent ddcae86830
commit ccedea4d39
2 changed files with 4 additions and 1 deletions
@@ -1476,7 +1476,9 @@ 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();
if (mainPanel.folderPreviewPanel.selectedItems.isEmpty()) {
tagTree.clearSelection();
}
Map<SWF, List<Tag>> tagsToRemoveBySwf = new HashMap<>();
Set<SWF> swfsToClearCache = new HashSet<>();