projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72ef80f
)
Bug fix #880: Optimize file loading when looking for duplicates
author
Colin Clark
<colin.clark@cclark.uk>
Sun, 4 Apr 2021 12:12:11 +0000
(13:12 +0100)
committer
Colin 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
patch
|
blob
|
history
diff --git
a/src/dupe.c
b/src/dupe.c
index
95db214
..
c6c7c58
100644
(file)
--- a/
src/dupe.c
+++ b/
src/dupe.c
@@
-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
TRU
E;
+ return
FALS
E;
return g_hash_table_add(table, fd);
}