Merge commit 'refs/merge-requests/1' of git://gitorious.org/geeqie/geeqie into merge...
authorKlaus Ethgen <Klaus@Ethgen.de>
Thu, 17 May 2012 17:28:56 +0000 (18:28 +0100)
committerKlaus Ethgen <Klaus@Ethgen.de>
Thu, 17 May 2012 17:28:56 +0000 (18:28 +0100)
* git://gitorious.org/geeqie/geeqie:
  Ignore duplicates with same path

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)
                {