f-spot r4303 - in trunk: . src
- From: lmilesi svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4303 - in trunk: . src
- Date: Mon, 1 Sep 2008 07:32:38 +0000 (UTC)
Author: lmilesi
Date: Mon Sep 1 07:32:38 2008
New Revision: 4303
URL: http://svn.gnome.org/viewvc/f-spot?rev=4303&view=rev
Log:
2008-09-01 Lorenzo Milesi <maxxer yetopen it>
* src/TagStore.cs: tag rename caused update of too many pics.
Modified:
trunk/ChangeLog
trunk/src/TagStore.cs
Modified: trunk/src/TagStore.cs
==============================================================================
--- trunk/src/TagStore.cs (original)
+++ trunk/src/TagStore.cs Mon Sep 1 07:32:38 2008
@@ -390,7 +390,8 @@
if (update_xmp && Preferences.Get<bool> (Preferences.METADATA_EMBED_IN_IMAGE)) {
Photo [] photos = Core.Database.Photos.Query (new Tag [] { tag });
foreach (Photo p in photos)
- SyncMetadataJob.Create (Core.Database.Jobs, p);
+ if (p.HasTag (tag)) // the query returns all the pics of the tag and all its child. this avoids updating child tags
+ SyncMetadataJob.Create (Core.Database.Jobs, p);
}
if (use_transactions)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]