Ignore duplicates with same path
authorcybjit <cybjit@gmail.com>
Mon, 25 Apr 2011 10:53:35 +0000 (12:53 +0200)
committercybjit <cybjit@gmail.com>
Mon, 26 Dec 2011 22:55:07 +0000 (23:55 +0100)
src/dupe.c

index e50b8df..0f65e34 100644 (file)
@@ -1116,7 +1116,7 @@ static gboolean dupe_match(DupeItem *a, DupeItem *b, DupeMatchType mask, gdouble
 {
        *rank = 0.0;
 
-       if (a == b) return FALSE;
+       if (a->fd->path == b->fd->path) return FALSE;
 
        if (mask & DUPE_MATCH_PATH)
                {