[Monodevelop-patches-list] r1026 - trunk/MonoDevelop/src/Main/Base/Services/File

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Wed Feb 25 12:57:09 EST 2004


Author: tberman
Date: 2004-02-25 12:57:09 -0500 (Wed, 25 Feb 2004)
New Revision: 1026

Modified:
   trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs
Log:
workaround potential mono bug


Modified: trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs	2004-02-25 04:14:54 UTC (rev 1025)
+++ trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs	2004-02-25 17:57:09 UTC (rev 1026)
@@ -67,23 +67,22 @@
 		{
 			if (fileName == null)
 				return;
-
+			string origName = fileName;
 			if (!fileName.StartsWith ("http://"))
 				fileName = System.IO.Path.GetFullPath (fileName);
 			
-			Debug.Assert(fileUtilityService.IsValidFileName(fileName));
-				
+			//Debug.Assert(fileUtilityService.IsValidFileName(fileName));
 			// test, if file fileName exists
 			if (!fileName.StartsWith("http://")) {
 				// test, if an untitled file should be opened
-				//if (!Path.IsPathRooted(fileName)) { 
+				if (!Path.IsPathRooted(origName)) { 
 					foreach (IViewContent content in WorkbenchSingleton.Workbench.ViewContentCollection) {
-						if (content.IsUntitled && content.UntitledName == fileName) {
+						if (content.IsUntitled && content.UntitledName == origName) {
 							content.WorkbenchWindow.SelectWindow();
 							return;
 						}
 					}
-				//} else 
+				} else 
 				if (!fileUtilityService.TestFileExists(fileName)) {
 					return;
 				}




More information about the Monodevelop-patches-list mailing list