mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
Merge pull request #7053 from wschaeferB/7655-ClearTextContentViewer
7655 don't set stale data for disabled viewer
This commit is contained in:
commit
068435a47b
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Autopsy Forensic Browser
|
* Autopsy Forensic Browser
|
||||||
*
|
*
|
||||||
* Copyright 2019 Basis Technology Corp.
|
* Copyright 2019-2021 Basis Technology Corp.
|
||||||
* Contact: carrier <at> sleuthkit <dot> org
|
* Contact: carrier <at> sleuthkit <dot> org
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* 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.
|
* Determine whether the content viewer which displays this panel
|
||||||
* This panel is supported if any of the TextViewer's displayed in it are
|
* isSupported. This panel is supported if any of the TextViewer's displayed
|
||||||
* supported.
|
* in it are supported.
|
||||||
*
|
*
|
||||||
* @param node
|
* @param node
|
||||||
*
|
*
|
||||||
@ -213,7 +213,7 @@ public class TextContentViewerPanel extends javax.swing.JPanel implements DataCo
|
|||||||
|
|
||||||
// Get and set current selected tab
|
// Get and set current selected tab
|
||||||
int currentTab = pane.getSelectedIndex();
|
int currentTab = pane.getSelectedIndex();
|
||||||
if (currentTab != -1) {
|
if (currentTab != -1 && pane.isEnabledAt(currentTab)) {
|
||||||
UpdateWrapper dcv = textViewers.get(currentTab);
|
UpdateWrapper dcv = textViewers.get(currentTab);
|
||||||
if (dcv.isOutdated()) {
|
if (dcv.isOutdated()) {
|
||||||
// change the cursor to "waiting cursor" for this operation
|
// change the cursor to "waiting cursor" for this operation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user