f-spot r3534 - in trunk: . src



Author: sdelcroix
Date: Wed Jan  9 13:18:27 2008
New Revision: 3534
URL: http://svn.gnome.org/viewvc/f-spot?rev=3534&view=rev

Log:
2008-01-09  Stephane Delcroix  <sdelcroix novell com>

	* src/PhotoStore.cs: fixes bgo #508124.


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

Modified: trunk/src/PhotoStore.cs
==============================================================================
--- trunk/src/PhotoStore.cs	(original)
+++ trunk/src/PhotoStore.cs	Wed Jan  9 13:18:27 2008
@@ -413,10 +413,10 @@
 		if (VersionNameExists (name))
 			throw new Exception ("This version name already exists");
 
-		if ((new Gnome.Vfs.Uri (new_uri.ToString ())).Exists)
-			throw new Exception (String.Format ("An object at this uri {0} already exists", new_uri.ToString ()));
-
 		if (create) {
+			if ((new Gnome.Vfs.Uri (new_uri.ToString ())).Exists)
+				throw new Exception (String.Format ("An object at this uri {0} already exists", new_uri.ToString ()));
+
 			Xfer.XferUri (
 				new Gnome.Vfs.Uri (original_uri.ToString ()), 
 				new Gnome.Vfs.Uri (new_uri.ToString ()),



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