f-spot r4492 - trunk/extensions/Tools/ChangePhotoPath



Author: sdelcroix
Date: Thu Oct 16 20:27:43 2008
New Revision: 4492
URL: http://svn.gnome.org/viewvc/f-spot?rev=4492&view=rev

Log:
2008-10-16  Stephane Delcroix  <sdelcroix novell com>

	* ChangePhotoPath.addin.xml:
	* ChangePhotoPathController.cs: mark the changes to be committed, fixes
	bgo #545967.

Modified:
   trunk/extensions/Tools/ChangePhotoPath/ChangeLog
   trunk/extensions/Tools/ChangePhotoPath/ChangePhotoPath.addin.xml
   trunk/extensions/Tools/ChangePhotoPath/ChangePhotoPathController.cs

Modified: trunk/extensions/Tools/ChangePhotoPath/ChangePhotoPath.addin.xml
==============================================================================
--- trunk/extensions/Tools/ChangePhotoPath/ChangePhotoPath.addin.xml	(original)
+++ trunk/extensions/Tools/ChangePhotoPath/ChangePhotoPath.addin.xml	Thu Oct 16 20:27:43 2008
@@ -1,6 +1,6 @@
 <Addin namespace="FSpot"
         id="ChangePath"
-        version="0.5.0.0"
+        version="0.5.0.1"
         name="ChangePath"
         description="UNSTABLE - Please ensure you have a backup of your photos.db before you test this extension. This extension will allow you to change the base path to the your photos. It is very handy if you move your photos from ~/Photos to /OurPhotos for instance. Just ensure you let SqLite continue to process the changes for up to a few hours after f-spot reports finished. It will only change the path to photos which are located under the Photo directory."
         author="Bengt Thuree"

Modified: trunk/extensions/Tools/ChangePhotoPath/ChangePhotoPathController.cs
==============================================================================
--- trunk/extensions/Tools/ChangePhotoPath/ChangePhotoPathController.cs	(original)
+++ trunk/extensions/Tools/ChangePhotoPath/ChangePhotoPathController.cs	Thu Oct 16 20:27:43 2008
@@ -183,6 +183,8 @@
 				photo = photo_store.Get ( (uint) photo_id_array[index]) as Photo;
 			PhotoVersion version = photo.GetVersion ( (uint) version_id_array[index]) as PhotoVersion;
 			version.Uri = new System.Uri ( path );
+			photo.Changes.UriChanged = true;
+			photo.Changes.ChangeVersion ( (uint) version_id_array[index] );
 		}
 
 /// FIXME Refactor, try to use one common method....



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