Fixed cvt thread selection issue

This commit is contained in:
Kelly Kelly
2021-04-20 12:24:49 -04:00
parent c6fd404b2c
commit 3c75b43882
@@ -49,6 +49,7 @@ import org.openide.nodes.Children;
import org.openide.nodes.Node;
import org.openide.nodes.Node.Property;
import org.openide.nodes.Node.PropertySet;
import org.openide.util.Exceptions;
import org.openide.util.Lookup;
import org.openide.util.NbBundle.Messages;
import org.sleuthkit.autopsy.communications.ModifiableProxyLookup;
@@ -146,14 +147,23 @@ final class MessageViewer extends JPanel implements RelationshipsViewer {
@Override
public void setSelectionInfo(SelectionInfo info) {
currentSelectionInfo = info;
if(currentSelectionInfo != null && currentSelectionInfo.equals(info)) {
try {
// Clear the currently selected thread so that clicks can
// be registered.
rootTablePane.getExplorerManager().setSelectedNodes(new Node[0]);
} catch (PropertyVetoException ex) {
logger.log(Level.WARNING, "Error clearing the selected node", ex);
}
} else {
currentSelectionInfo = info;
rootMessageFactory.refresh(info);
}
currentPanel = rootTablePane;
CardLayout layout = (CardLayout) this.getLayout();
layout.show(this, "threads");
rootMessageFactory.refresh(info);
layout.show(this, "threads");
}
@Override