X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fdata%2FRecentFile.java;h=e7d95ba944bf19cff22f8d77a93f0e7bf0a63d73;hp=d13388d28e4c0da1911c6923eb6831da08dbce04;hb=4d5796d02a15808311c09448d79e6e7d1de9d636;hpb=f1b92378a792131ac8fb33a869405851d5b2d1f7 diff --git a/tim/prune/data/RecentFile.java b/tim/prune/data/RecentFile.java index d13388d..e7d95ba 100644 --- a/tim/prune/data/RecentFile.java +++ b/tim/prune/data/RecentFile.java @@ -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 } }