comparison src/image.c @ 1678:c029adbabb70

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 56115e934133
children 1b790ab146ab
comparison
equal deleted inserted replaced
1677:6b0e71b96ab6 1678:c029adbabb70
1411 imd->state == IMAGE_STATE_NONE /* loading not started, no need to reload */ 1411 imd->state == IMAGE_STATE_NONE /* loading not started, no need to reload */
1412 ) return; 1412 ) return;
1413 1413
1414 if ((type & (NOTIFY_REREAD | NOTIFY_CHANGE)) && fd == imd->image_fd) 1414 if ((type & (NOTIFY_REREAD | NOTIFY_CHANGE)) && fd == imd->image_fd)
1415 { 1415 {
1416 if ((type & NOTIFY_CHANGE) && fd->change && fd->change->type == FILEDATA_CHANGE_DELETE)
1417 return; /* keep the image displayed, it will be replaced by the next image from the list soon */
1416 DEBUG_1("Notify image: %s %04x", fd->path, type); 1418 DEBUG_1("Notify image: %s %04x", fd->path, type);
1417 image_reload(imd); 1419 image_reload(imd);
1418 } 1420 }
1419 } 1421 }
1420 1422