]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/data/RecentFile.java
Version 14, October 2012
[GpsPrune.git] / tim / prune / data / RecentFile.java
index d13388d28e4c0da1911c6923eb6831da08dbce04..e7d95ba944bf19cff22f8d77a93f0e7bf0a63d73 100644 (file)
@@ -72,6 +72,7 @@ public class RecentFile
        public boolean isSameFile(RecentFile inOther)
        {
                return inOther != null && isValid() && inOther.isValid()
-                       && _file.equals(inOther._file);
+                       && (_file.equals(inOther._file) || _file.getAbsolutePath().equals(inOther._file.getAbsolutePath()));
+               // Note that the file.equals should be sufficient but sometimes it returns false even if the absolute paths are identical
        }
 }