Revision: 1831
http://geeqie.svn.sourceforge.net/geeqie/?rev=1831&view=rev
Author: nadvornik
Date: 2009-09-03 19:18:20 +0000 (Thu, 03 Sep 2009)
Log Message:
-----------
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
Modified Paths:
--------------
trunk/src/image.c
Modified: trunk/src/image.c
===================================================================
--- trunk/src/image.c 2009-08-28 23:09:05 UTC (rev 1830)
+++ trunk/src/image.c 2009-09-03 19:18:20 UTC (rev 1831)
@@ -1440,10 +1440,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);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn