changeset 1654:b874e5697fbf

always check for deleted sidecar files
author nadvornik
date Sat, 20 Jun 2009 08:51:07 +0000
parents f66934d3706b
children 6600a2754e50
files src/filedata.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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;