# HG changeset patch # User nadvornik # Date 1245487867 0 # Node ID 8b2ba0e1fc09f659d4050d6961dc256650e28be3 # Parent 415c597f815fbd3fc94fd51a16a92f547ca794a2 always check for deleted sidecar files diff -r 415c597f815f -r 8b2ba0e1fc09 src/filedata.c --- a/src/filedata.c Sat Jun 20 11:43:32 2009 +0900 +++ b/src/filedata.c Sat Jun 20 08:51:07 2009 +0000 @@ -467,8 +467,10 @@ while (work2) { + struct stat nst; FileData *sfd = work2->data; - if (g_ascii_strcasecmp(ext, sfd->extension) == 0) + if (g_ascii_strcasecmp(ext, sfd->extension) == 0 && + stat_utf8(sfd->path, &nst)) /* basename list can contain deleted files */ { new_fd = file_data_ref(sfd); break;