mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
Merge branch 'release-4.5.0' of https://github.com/sleuthkit/autopsy into 3086-CeContentViewerScrolling
This commit is contained in:
commit
b4c645d770
@ -55,6 +55,7 @@ import org.sleuthkit.autopsy.corecomponents.ResultViewerPersistence.SortCriterio
|
|||||||
import static org.sleuthkit.autopsy.corecomponents.ResultViewerPersistence.loadSortCriteria;
|
import static org.sleuthkit.autopsy.corecomponents.ResultViewerPersistence.loadSortCriteria;
|
||||||
import org.sleuthkit.autopsy.coreutils.ImageUtils;
|
import org.sleuthkit.autopsy.coreutils.ImageUtils;
|
||||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||||
|
import org.sleuthkit.datamodel.AbstractFile;
|
||||||
import org.sleuthkit.datamodel.Content;
|
import org.sleuthkit.datamodel.Content;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -204,7 +205,7 @@ class ThumbnailViewChildren extends Children.Keys<Integer> {
|
|||||||
|
|
||||||
private static boolean isSupported(Node node) {
|
private static boolean isSupported(Node node) {
|
||||||
if (node != null) {
|
if (node != null) {
|
||||||
Content content = node.getLookup().lookup(Content.class);
|
Content content = node.getLookup().lookup(AbstractFile.class);
|
||||||
if (content != null) {
|
if (content != null) {
|
||||||
return ImageUtils.thumbnailSupported(content);
|
return ImageUtils.thumbnailSupported(content);
|
||||||
}
|
}
|
||||||
@ -264,7 +265,7 @@ class ThumbnailViewChildren extends Children.Keys<Integer> {
|
|||||||
private ThumbnailViewNode(Node wrappedNode, int thumbSize) {
|
private ThumbnailViewNode(Node wrappedNode, int thumbSize) {
|
||||||
super(wrappedNode, FilterNode.Children.LEAF);
|
super(wrappedNode, FilterNode.Children.LEAF);
|
||||||
this.thumbSize = thumbSize;
|
this.thumbSize = thumbSize;
|
||||||
this.content = this.getLookup().lookup(Content.class);
|
this.content = this.getLookup().lookup(AbstractFile.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user