mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +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)
|
||||
@Override
|
||||
void clearList() {
|
||||
tableModel.setContents(new ArrayList<>());
|
||||
tableModel.fireTableDataChanged();
|
||||
addArtifacts(new ArrayList<>());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -80,9 +80,9 @@ final class DomainDetailsPanel extends JPanel {
|
||||
if (selectedTabName == null || !selectedTabName.equals(newTabTitle)) {
|
||||
selectedTabName = newTabTitle;
|
||||
Component selectedComponent = jTabbedPane1.getSelectedComponent();
|
||||
if (selectedComponent instanceof DomainArtifactsTabPanel) {
|
||||
if (!StringUtils.isBlank(domain) && selectedComponent instanceof DomainArtifactsTabPanel) {
|
||||
runDomainWorker((DomainArtifactsTabPanel) selectedComponent, true);
|
||||
} else if (selectedComponent instanceof MiniTimelinePanel) {
|
||||
} else if (!StringUtils.isBlank(domain) && selectedComponent instanceof MiniTimelinePanel) {
|
||||
runMiniTimelineWorker((MiniTimelinePanel) selectedComponent, true);
|
||||
}
|
||||
}
|
||||
@ -170,13 +170,13 @@ final class DomainDetailsPanel extends JPanel {
|
||||
@Subscribe
|
||||
void handlePopulateDomainTabsEvent(DiscoveryEventUtils.PopulateDomainTabsEvent populateEvent) {
|
||||
SwingUtilities.invokeLater(() -> {
|
||||
if (StringUtils.isBlank(populateEvent.getDomain())) {
|
||||
domain = populateEvent.getDomain();
|
||||
if (StringUtils.isBlank(domain)) {
|
||||
resetTabsStatus();
|
||||
//send fade out event
|
||||
DiscoveryEventUtils.getDiscoveryEventBus().post(new DiscoveryEventUtils.DetailsVisibleEvent(false));
|
||||
} else {
|
||||
resetTabsStatus();
|
||||
domain = populateEvent.getDomain();
|
||||
Component selectedComponent = jTabbedPane1.getSelectedComponent();
|
||||
if (selectedComponent instanceof DomainArtifactsTabPanel) {
|
||||
runDomainWorker((DomainArtifactsTabPanel) selectedComponent, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user