From 5aed1e565ca7ffaa6d9b0a9cea2c84a3099e7ae8 Mon Sep 17 00:00:00 2001
From: Kelly Kelly <kelly@basistech.com>
Date: Wed, 3 Feb 2021 16:09:35 -0500
Subject: [PATCH] Fixed comment

---
 .../sleuthkit/autopsy/imagegallery/ImageGalleryController.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/ImageGalleryController.java b/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/ImageGalleryController.java
index d9746bda88..0ddded910b 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 {
-                                    // status of UNKNOWN from getDataSourceDbBuildStatus means that the data source is not known
+                                    // Only add the data source if is not in the database
                                     if(drawableDB.getDataSourceDbBuildStatus(newDataSource.getId()) == DrawableDB.DrawableDbBuildStatusEnum.UNKNOWN) {
                                         drawableDB.insertOrUpdateDataSource(newDataSource.getId(), DrawableDB.DrawableDbBuildStatusEnum.UNKNOWN);
                                     }
-- 
GitLab