f-spot r3737 - in trunk: . src



Author: sdelcroix
Date: Thu Mar  6 14:25:13 2008
New Revision: 3737
URL: http://svn.gnome.org/viewvc/f-spot?rev=3737&view=rev

Log:
2008-03-06  Lorenzo Milesi <maxxer yetopen it>

	* src/FileImportBackend.cs: Skip hidden files when importing from
	a directory. Fixes bgo #46131.


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

Modified: trunk/src/FileImportBackend.cs
==============================================================================
--- trunk/src/FileImportBackend.cs	(original)
+++ trunk/src/FileImportBackend.cs	Thu Mar  6 14:25:13 2008
@@ -50,7 +50,7 @@
 		public ImportInfo (string original)
 		{
 			original_path = original;
-		        destination_path= null;
+		        destination_path = null;
 			Photo = null;
 		}
 	}
@@ -84,7 +84,7 @@
 		}
 
 		foreach (System.IO.FileInfo f in files) {
-			if (! existing_entries.Contains (UriUtils.PathToFileUri (f.FullName))) {
+			if (! existing_entries.Contains (UriUtils.PathToFileUri (f.FullName)) && !f.Name.StartsWith (".")) {
 				AddPath (f.FullName);
 			}
 		}



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