# HG changeset patch # User nadvornik # Date 1252005500 0 # Node ID 1b790ab146ab40733edca765550e7f10b1329395 # Parent b16a453bfde6856e8e7fd80dec50c22e5ef51389 do not reload image on copy, move, rename and external editor changed files should be detected anyway http://sourceforge.net/tracker/index.php?func=detail&aid=2848373&group_id=222125&atid=1054680 diff -r b16a453bfde6 -r 1b790ab146ab src/image.c --- a/src/image.c Fri Aug 28 23:09:05 2009 +0000 +++ b/src/image.c Thu Sep 03 19:18:20 2009 +0000 @@ -1411,10 +1411,12 @@ imd->state == IMAGE_STATE_NONE /* loading not started, no need to reload */ ) return; - if ((type & (NOTIFY_REREAD | NOTIFY_CHANGE)) && fd == imd->image_fd) + if ((type & NOTIFY_REREAD) && fd == imd->image_fd) { - if ((type & NOTIFY_CHANGE) && fd->change && fd->change->type == FILEDATA_CHANGE_DELETE) - return; /* keep the image displayed, it will be replaced by the next image from the list soon */ + /* there is no need to reload on NOTIFY_CHANGE, + modified files should be detacted anyway and NOTIFY_REREAD should be recieved + or they are removed from the filelist completely on "move" and "delete" + */ DEBUG_1("Notify image: %s %04x", fd->path, type); image_reload(imd); }