Author: abrander
Date: 2009-12-21 02:44:30 +0100 (Mon, 21 Dec 2009)
New Revision: 2830

Modified:
   trunk/src/rs-library.c
Log:
Make rs_library_photo_default_tags() return if the photo is already known.

Modified: trunk/src/rs-library.c
===================================================================
--- trunk/src/rs-library.c      2009-12-21 01:41:57 UTC (rev 2829)
+++ trunk/src/rs-library.c      2009-12-21 01:44:30 UTC (rev 2830)
@@ -523,6 +523,10 @@
 {
        g_assert(RS_IS_LIBRARY(library));
 
+       /* Bail out if we already know the photo */
+       if (library_find_photo_id(library, photo) > -1)
+               return;
+
        GList *tags = NULL;
 
        rs_library_add_photo(library, photo);


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to