mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
Merge pull request #3468 from millmanorama/941-disable-view-in-timeline-for-attachments
941- disable ViewFileInTimelineAction if the file has no valid timestamps
This commit is contained in:
commit
389711f2df
@ -39,9 +39,13 @@ public final class ViewFileInTimelineAction extends AbstractAction {
|
|||||||
private ViewFileInTimelineAction(AbstractFile file, String displayName) {
|
private ViewFileInTimelineAction(AbstractFile file, String displayName) {
|
||||||
super(displayName);
|
super(displayName);
|
||||||
this.file = file;
|
this.file = file;
|
||||||
|
|
||||||
if(file.getType().equals(TskData.TSK_DB_FILES_TYPE_ENUM.SLACK)
|
if (file.getType().equals(TskData.TSK_DB_FILES_TYPE_ENUM.SLACK)
|
||||||
|| file.getType().equals(TskData.TSK_DB_FILES_TYPE_ENUM.UNALLOC_BLOCKS)){
|
|| file.getType().equals(TskData.TSK_DB_FILES_TYPE_ENUM.UNALLOC_BLOCKS)
|
||||||
|
|| (file.getCrtime() <= 0
|
||||||
|
&& file.getCtime() <= 0
|
||||||
|
&& file.getMtime() <= 0
|
||||||
|
&& file.getAtime() <= 0)) {
|
||||||
this.setEnabled(false);
|
this.setEnabled(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user