diff --git a/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/ImageGalleryController.java b/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/ImageGalleryController.java index 0ddded910b46cee57aebdf4dcc03d48ba50cb264..d365df4e8c17b28871695d84ce4def1b118150a7 100644 --- a/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/ImageGalleryController.java +++ b/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/ImageGalleryController.java @@ -839,7 +839,7 @@ public void propertyChange(PropertyChangeEvent event) { Content newDataSource = (Content) event.getNewValue(); if (isListeningEnabled()) { try { - // Only add the data source if is not in the database + // If the data source already exists and has a status other than UNKNOWN, don’t overwrite it. if(drawableDB.getDataSourceDbBuildStatus(newDataSource.getId()) == DrawableDB.DrawableDbBuildStatusEnum.UNKNOWN) { drawableDB.insertOrUpdateDataSource(newDataSource.getId(), DrawableDB.DrawableDbBuildStatusEnum.UNKNOWN); }