[f-spot/rubenv-gsoc-2009: 67/86] Also remove Processing settings upon removing a photo version.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot/rubenv-gsoc-2009: 67/86] Also remove Processing settings upon removing a photo version.
- Date: Sun, 23 May 2010 12:37:35 +0000 (UTC)
commit a65adaf952e938d4af52dfd3f776b1ebcab699df
Author: Ruben Vermeersch <ruben savanne be>
Date: Wed Aug 12 13:31:21 2009 +0200
Also remove Processing settings upon removing a photo version.
src/PhotoStore.cs | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/PhotoStore.cs b/src/PhotoStore.cs
index ff89ed3..237badf 100644
--- a/src/PhotoStore.cs
+++ b/src/PhotoStore.cs
@@ -550,12 +550,13 @@ public class PhotoStore : DbStore<Photo> {
// Update versions.
if (changes.VersionsRemoved != null)
- foreach (uint version_id in changes.VersionsRemoved)
+ foreach (uint version_id in changes.VersionsRemoved) {
Database.ExecuteNonQuery (new DbCommand (
"DELETE FROM photo_versions WHERE photo_id = :photo_id AND version_id = :version_id",
"photo_id", photo.Id,
"version_id", version_id));
-
+ Core.Database.ProcessingSettings.RemoveAll (photo.Id, version_id);
+ }
if (changes.VersionsAdded != null)
foreach (uint version_id in changes.VersionsAdded) {
PhotoVersion version = photo.GetVersion (version_id) as PhotoVersion;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]