Revision: 1350
http://geeqie.svn.sourceforge.net/geeqie/?rev=1350&view=rev
Author: nadvornik
Date: 2009-01-25 09:27:27 +0000 (Sun, 25 Jan 2009)
Log Message:
-----------
do not ignore newly created sidecars
Modified Paths:
--------------
trunk/src/metadata.c
Modified: trunk/src/metadata.c
===================================================================
--- trunk/src/metadata.c 2009-01-24 13:46:08 UTC (rev 1349)
+++ trunk/src/metadata.c 2009-01-25 09:27:27 UTC (rev 1350)
@@ -158,6 +158,15 @@
success = (fd->change->dest) ? exif_write_sidecar(exif,
fd->change->dest) : exif_write(exif); /* write modified metadata */
exif_free_fd(fd, exif);
+ if (fd->change->dest)
+ /* this will create a FileData for the sidecar and link it to
the main file
+ (we can't wait until the sidecar is discovered by directory
scanning because
+ exif_read_fd is called before that and it would read the
main file only and
+ store the metadata in the cache)
+ FIXME: this does not catch new sidecars created by
independent external programs
+ */
+ file_data_unref(file_data_new_simple(fd->change->dest));
+
if (success) metadata_legacy_delete(fd, fd->change->dest);
return success;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn