Mercurial > geeqie
diff src/thumb_standard.c @ 972:2ea1059a6091
set fallback pixbuf in case of missing file
author | nadvornik |
---|---|
date | Tue, 19 Aug 2008 21:01:29 +0000 |
parents | 10d0bf784323 |
children | dd311dae857a |
line wrap: on
line diff
--- a/src/thumb_standard.c Tue Aug 19 20:58:23 2008 +0000 +++ b/src/thumb_standard.c Tue Aug 19 21:01:29 2008 +0000 @@ -657,9 +657,13 @@ thumb_loader_std_reset(tl); - if (!stat_utf8(fd->path, &st)) return FALSE; tl->fd = file_data_ref(fd); + if (!stat_utf8(fd->path, &st)) + { + thumb_loader_std_set_fallback(tl); + return FALSE; + } tl->source_mtime = st.st_mtime; tl->source_size = st.st_size; tl->source_mode = st.st_mode;