From 5a853bf6e717cfd9d7cff7e8215b2fe9f1c32126 Mon Sep 17 00:00:00 2001 From: William Schaefer Date: Thu, 17 Jun 2021 14:40:01 -0400 Subject: [PATCH] 7655 don't set stale data for disabled viewer --- .../textcontentviewer/TextContentViewerPanel.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/contentviewers/textcontentviewer/TextContentViewerPanel.java b/Core/src/org/sleuthkit/autopsy/contentviewers/textcontentviewer/TextContentViewerPanel.java index 7c80d606fd..62062cbc95 100644 --- a/Core/src/org/sleuthkit/autopsy/contentviewers/textcontentviewer/TextContentViewerPanel.java +++ b/Core/src/org/sleuthkit/autopsy/contentviewers/textcontentviewer/TextContentViewerPanel.java @@ -1,7 +1,7 @@ /* * Autopsy Forensic Browser * - * Copyright 2019 Basis Technology Corp. + * Copyright 2019-2021 Basis Technology Corp. * Contact: carrier sleuthkit org * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -79,9 +79,9 @@ public class TextContentViewerPanel extends javax.swing.JPanel implements DataCo } /** - * Determine whether the content viewer which displays this panel isSupported. - * This panel is supported if any of the TextViewer's displayed in it are - * supported. + * Determine whether the content viewer which displays this panel + * isSupported. This panel is supported if any of the TextViewer's displayed + * in it are supported. * * @param node * @@ -213,7 +213,7 @@ public class TextContentViewerPanel extends javax.swing.JPanel implements DataCo // Get and set current selected tab int currentTab = pane.getSelectedIndex(); - if (currentTab != -1) { + if (currentTab != -1 && pane.isEnabledAt(currentTab)) { UpdateWrapper dcv = textViewers.get(currentTab); if (dcv.isOutdated()) { // change the cursor to "waiting cursor" for this operation