Bug fix #880: Optimize file loading when looking for duplicates
authorColin Clark <colin.clark@cclark.uk>
Sun, 4 Apr 2021 12:12:11 +0000 (13:12 +0100)
committerColin Clark <colin.clark@cclark.uk>
Sun, 4 Apr 2021 12:12:11 +0000 (13:12 +0100)
Reversed logic, resulting in items being processed twice

src/dupe.c

index 95db214..c6c7c58 100644 (file)
@@ -2561,7 +2561,7 @@ static gboolean dupe_insert_in_list_cache(DupeWindow *dw, FileData *fd)
        /* We do this as a lookup + add as we don't want to overwrite
           items as that would leak the old value. */
        if (g_hash_table_lookup(table, fd) != NULL)
-               return TRUE;
+               return FALSE;
        return g_hash_table_add(table, fd);
 }