f-spot r4124 - in trunk: . src
- From: rubenv svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4124 - in trunk: . src
- Date: Mon, 30 Jun 2008 15:45:55 +0000 (UTC)
Author: rubenv
Date: Mon Jun 30 15:45:55 2008
New Revision: 4124
URL: http://svn.gnome.org/viewvc/f-spot?rev=4124&view=rev
Log:
2008-06-30 Ruben Vermeersch <ruben savanne be>
* src/PhotoQuery.cs: Fix a stupid bug that caused way too much commits.
* src/PhotoStore.cs: Move the EmitChanged call out of the transaction.
Modified:
trunk/ChangeLog
trunk/src/PhotoQuery.cs
trunk/src/PhotoStore.cs
Modified: trunk/src/PhotoQuery.cs
==============================================================================
--- trunk/src/PhotoQuery.cs (original)
+++ trunk/src/PhotoQuery.cs Mon Jun 30 15:45:55 2008
@@ -190,7 +190,7 @@
List<Photo> to_commit = new List<Photo>();
foreach (int index in indexes)
to_commit.Add (photos [index]);
- store.Commit (photos);
+ store.Commit (to_commit.ToArray ());
}
private void MarkChanged (object sender, DbItemEventArgs args)
Modified: trunk/src/PhotoStore.cs
==============================================================================
--- trunk/src/PhotoStore.cs (original)
+++ trunk/src/PhotoStore.cs Mon Jun 30 15:45:55 2008
@@ -418,10 +418,10 @@
foreach (DbItem item in items)
Update ((Photo)item);
- EmitChanged (items, args);
-
if (use_transactions)
Database.CommitTransaction ();
+
+ EmitChanged (items, args);
}
private void Update (Photo photo) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]