From a87a665993df83c3aeb6ad079ed01d24affc23c9 Mon Sep 17 00:00:00 2001 From: jmillman Date: Thu, 11 Jun 2015 14:30:35 -0400 Subject: [PATCH] don't mark groups as unseen unless a file was actually added or removed --- .../autopsy/imagegallery/grouping/DrawableGroup.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/grouping/DrawableGroup.java b/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/grouping/DrawableGroup.java index 445b336ba9..59437df5be 100644 --- a/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/grouping/DrawableGroup.java +++ b/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/grouping/DrawableGroup.java @@ -133,16 +133,18 @@ public class DrawableGroup implements Comparable { synchronized public void addFile(Long f) { invalidateHashSetHitsCount(); - seen.set(false); if (fileIDs.contains(f) == false) { fileIDs.add(f); + seen.set(false); + } } synchronized public void removeFile(Long f) { invalidateHashSetHitsCount(); - seen.set(false); - fileIDs.removeAll(f); + if (fileIDs.removeAll(f)) { + seen.set(false); + } } // By default, sort by group key name