From 9dd0d99bbea68c80ee31bb35955057447eda23a2 Mon Sep 17 00:00:00 2001 From: William Schaefer Date: Wed, 11 Dec 2019 12:58:29 -0500 Subject: [PATCH] 5781 only respond to instances table even with correct viewer --- .../autopsy/filequery/ResultsPanel.java | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/filequery/ResultsPanel.java b/Core/src/org/sleuthkit/autopsy/filequery/ResultsPanel.java index 27086c731c..3e4f8b7a68 100644 --- a/Core/src/org/sleuthkit/autopsy/filequery/ResultsPanel.java +++ b/Core/src/org/sleuthkit/autopsy/filequery/ResultsPanel.java @@ -88,17 +88,21 @@ public class ResultsPanel extends javax.swing.JPanel { imageThumbnailViewer = new ImageThumbnailViewer(); videoThumbnailViewer = new VideoThumbnailViewer(); videoThumbnailViewer.addListSelectionListener((e) -> { - if (!e.getValueIsAdjusting()) { - populateInstancesList(); - } else { - instancesList.clearSelection(); + if (resultType == FileSearchData.FileType.VIDEO) { + if (!e.getValueIsAdjusting()) { + populateInstancesList(); + } else { + instancesList.clearSelection(); + } } }); imageThumbnailViewer.addListSelectionListener((e) -> { - if (!e.getValueIsAdjusting()) { - populateInstancesList(); - } else { - instancesList.clearSelection(); + if (resultType == FileSearchData.FileType.IMAGE) { + if (!e.getValueIsAdjusting()) { + populateInstancesList(); + } else { + instancesList.clearSelection(); + } } }); //Add the context menu when right clicking