diff src/filedata.c @ 1654:b874e5697fbf

always check for deleted sidecar files
author nadvornik
date Sat, 20 Jun 2009 08:51:07 +0000
parents 2842a051c870
children c5c7e19fbb23
line wrap: on
line diff
--- a/src/filedata.c	Fri Jun 19 22:37:30 2009 +0000
+++ 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;