[Monodevelop-patches-list] r539 - trunk/MonoDevelop/src/Main/Base/Gui/Pads

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sun Jan 18 06:08:04 EST 2004


Author: pedroas
Date: 2004-01-18 06:08:04 -0500 (Sun, 18 Jan 2004)
New Revision: 539

Modified:
   trunk/MonoDevelop/src/Main/Base/Gui/Pads/FileScout.cs
Log:
Bugfix. It was not possible to select the first file in list


Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/FileScout.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/FileScout.cs	2004-01-18 10:07:26 UTC (rev 538)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/FileScout.cs	2004-01-18 11:08:04 UTC (rev 539)
@@ -268,7 +268,7 @@
 					return fullname;
 				} 
 				set {
-					fullname = value;
+					fullname = System.IO.Path.GetFullPath(value);
 					text = System.IO.Path.GetFileName(fullname);
 				}
 			}
@@ -449,10 +449,11 @@
 			IFileService    fileService    = (IFileService)ICSharpCode.Core.Services.ServiceManager.Services.GetService(typeof(IFileService));
 			FileUtilityService fileUtilityService = (FileUtilityService)ServiceManager.Services.GetService(typeof(FileUtilityService));
 
-			
-			//foreach (FileList.FileListItem item in filelister.SelectedItems) {
 			Gtk.TreeIter iter;
-			for (filelister.Model.GetIterFirst(out iter); filelister.Model.IterNext(out iter) == true;) {
+			if (filelister.Model.GetIterFirst(out iter) == false) {
+				return;
+			}
+			do {
 				if (filelister.Selection.IterIsSelected(iter) == false) {
 					continue;
 				} 
@@ -466,7 +467,7 @@
 						fileService.OpenFile(item.FullName);
 						break;
 				}
-			}
+			} while (filelister.Model.IterNext(out iter) == true);
 		}
 /*
 		protected virtual void OnTitleChanged(EventArgs e)




More information about the Monodevelop-patches-list mailing list