changeset 1649:8b2ba0e1fc09

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