comparison src/image.c @ 1701:2309e6150e8c

do not try to reload deleted image deleted image is replaced by the next one from the list, keep the old image displayed until the new one is set
author nadvornik
date Fri, 24 Jul 2009 12:56:54 +0000
parents b8235f919d6b
children 155268f3bc76
comparison
equal deleted inserted replaced
1700:bda2d599cc70 1701:2309e6150e8c
1440 imd->state == IMAGE_STATE_NONE /* loading not started, no need to reload */ 1440 imd->state == IMAGE_STATE_NONE /* loading not started, no need to reload */
1441 ) return; 1441 ) return;
1442 1442
1443 if ((type & (NOTIFY_REREAD | NOTIFY_CHANGE)) && fd == imd->image_fd) 1443 if ((type & (NOTIFY_REREAD | NOTIFY_CHANGE)) && fd == imd->image_fd)
1444 { 1444 {
1445 if ((type & NOTIFY_CHANGE) && fd->change && fd->change->type == FILEDATA_CHANGE_DELETE)
1446 return; /* keep the image displayed, it will be replaced by the next image from the list soon */
1445 DEBUG_1("Notify image: %s %04x", fd->path, type); 1447 DEBUG_1("Notify image: %s %04x", fd->path, type);
1446 image_reload(imd); 1448 image_reload(imd);
1447 } 1449 }
1448 } 1450 }
1449 1451