f-spot r3769 - in trunk: . src



Author: sdelcroix
Date: Fri Mar 21 08:20:50 2008
New Revision: 3769
URL: http://svn.gnome.org/viewvc/f-spot?rev=3769&view=rev

Log:
2008-03-21  Stephane Delcroix  <sdelcroix novell com>

	* src/CameraFileSelectionDialog.cs: start counting from 1 on the
	dialog. Fixes bgo #492518. Thx Maxxer.


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

Modified: trunk/src/CameraFileSelectionDialog.cs
==============================================================================
--- trunk/src/CameraFileSelectionDialog.cs	(original)
+++ trunk/src/CameraFileSelectionDialog.cs	Fri Mar 21 08:20:50 2008
@@ -210,16 +210,14 @@
 			lock (camera) {
 				System.Collections.ArrayList saved = new System.Collections.ArrayList ();
 					
-				int count = 0;
 				for (int i = 0; i < index_list.Count; i++) {
 					try {
-						count++;
 						string msg = String.Format (Catalog.GetString ("Copying file {0} of {1}"),
-									    i, index_list.Count);
+									    (i + 1), index_list.Count);
 						
 						progress_dialog.ProgressText = msg;
 						saved.Add (SaveFile ((int)(index_list [i])));
-						progress_dialog.Fraction = count/(double)index_list.Count;
+						progress_dialog.Fraction = (i + 1)/(double)index_list.Count;
 					}
 					catch (System.Exception e) {
 						System.Console.WriteLine (e.ToString ());



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