f-spot r4159 - in trunk: . src



Author: sdelcroix
Date: Mon Jul  7 09:32:52 2008
New Revision: 4159
URL: http://svn.gnome.org/viewvc/f-spot?rev=4159&view=rev

Log:
2008-07-07  Stephane Delcroix  <sdelcroix novell com>

	* src/TagCommands.cs: embed the Commit in a transaction to keep
	the app responsive if "Write Metadata" is checked


Modified:
   trunk/ChangeLog
   trunk/src/TagCommands.cs

Modified: trunk/src/TagCommands.cs
==============================================================================
--- trunk/src/TagCommands.cs	(original)
+++ trunk/src/TagCommands.cs	Mon Jul  7 09:32:52 2008
@@ -299,7 +299,10 @@
 					t.Name = last_valid_name;
 					t.Category = categories [category_option_menu.History] as Category;
 
+					db.BeginTransaction ();
 					db.Tags.Commit (t, orig_name != t.Name);
+					db.CommitTransaction ();
+
 					success = true;
 				} catch (Exception ex) {
 					// FIXME error dialog.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]