mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 16:36:15 +00:00
Merge pull request #6737 from wschaeferB/7303-MiniTimelineNoResultsFix
7303 mini timeline no results fix
This commit is contained in:
commit
201740df2d
@ -162,8 +162,7 @@ final class ArtifactsListPanel extends AbstractArtifactListPanel {
|
|||||||
@ThreadConfined(type = ThreadConfined.ThreadType.AWT)
|
@ThreadConfined(type = ThreadConfined.ThreadType.AWT)
|
||||||
@Override
|
@Override
|
||||||
void clearList() {
|
void clearList() {
|
||||||
tableModel.setContents(new ArrayList<>());
|
addArtifacts(new ArrayList<>());
|
||||||
tableModel.fireTableDataChanged();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -80,9 +80,9 @@ final class DomainDetailsPanel extends JPanel {
|
|||||||
if (selectedTabName == null || !selectedTabName.equals(newTabTitle)) {
|
if (selectedTabName == null || !selectedTabName.equals(newTabTitle)) {
|
||||||
selectedTabName = newTabTitle;
|
selectedTabName = newTabTitle;
|
||||||
Component selectedComponent = jTabbedPane1.getSelectedComponent();
|
Component selectedComponent = jTabbedPane1.getSelectedComponent();
|
||||||
if (selectedComponent instanceof DomainArtifactsTabPanel) {
|
if (!StringUtils.isBlank(domain) && selectedComponent instanceof DomainArtifactsTabPanel) {
|
||||||
runDomainWorker((DomainArtifactsTabPanel) selectedComponent, true);
|
runDomainWorker((DomainArtifactsTabPanel) selectedComponent, true);
|
||||||
} else if (selectedComponent instanceof MiniTimelinePanel) {
|
} else if (!StringUtils.isBlank(domain) && selectedComponent instanceof MiniTimelinePanel) {
|
||||||
runMiniTimelineWorker((MiniTimelinePanel) selectedComponent, true);
|
runMiniTimelineWorker((MiniTimelinePanel) selectedComponent, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -170,13 +170,13 @@ final class DomainDetailsPanel extends JPanel {
|
|||||||
@Subscribe
|
@Subscribe
|
||||||
void handlePopulateDomainTabsEvent(DiscoveryEventUtils.PopulateDomainTabsEvent populateEvent) {
|
void handlePopulateDomainTabsEvent(DiscoveryEventUtils.PopulateDomainTabsEvent populateEvent) {
|
||||||
SwingUtilities.invokeLater(() -> {
|
SwingUtilities.invokeLater(() -> {
|
||||||
if (StringUtils.isBlank(populateEvent.getDomain())) {
|
domain = populateEvent.getDomain();
|
||||||
|
if (StringUtils.isBlank(domain)) {
|
||||||
resetTabsStatus();
|
resetTabsStatus();
|
||||||
//send fade out event
|
//send fade out event
|
||||||
DiscoveryEventUtils.getDiscoveryEventBus().post(new DiscoveryEventUtils.DetailsVisibleEvent(false));
|
DiscoveryEventUtils.getDiscoveryEventBus().post(new DiscoveryEventUtils.DetailsVisibleEvent(false));
|
||||||
} else {
|
} else {
|
||||||
resetTabsStatus();
|
resetTabsStatus();
|
||||||
domain = populateEvent.getDomain();
|
|
||||||
Component selectedComponent = jTabbedPane1.getSelectedComponent();
|
Component selectedComponent = jTabbedPane1.getSelectedComponent();
|
||||||
if (selectedComponent instanceof DomainArtifactsTabPanel) {
|
if (selectedComponent instanceof DomainArtifactsTabPanel) {
|
||||||
runDomainWorker((DomainArtifactsTabPanel) selectedComponent, false);
|
runDomainWorker((DomainArtifactsTabPanel) selectedComponent, false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user