[Monodevelop-patches-list] r1775 - in trunk/MonoDevelop/src/Main/Base: . Gui/Pads/ProjectBrowser/BrowserNode

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Thu Jun 17 21:08:08 EDT 2004


Author: jluke
Date: 2004-06-17 21:08:08 -0400 (Thu, 17 Jun 2004)
New Revision: 1775

Modified:
   trunk/MonoDevelop/src/Main/Base/ChangeLog
   trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/FileNode.cs
Log:
do not force renamed files to have an extension, bug 59677


Modified: trunk/MonoDevelop/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/Main/Base/ChangeLog	2004-06-18 00:28:08 UTC (rev 1774)
+++ trunk/MonoDevelop/src/Main/Base/ChangeLog	2004-06-18 01:08:08 UTC (rev 1775)
@@ -14,6 +14,10 @@
 	* Gui/Pads/HelpBrowser/HelpViewer.cs: set IsViewOnly property to true
 	so we don't crash on save
 
+	* Gui/Pads/ProjectBrowser/BrowserNode/FileNode.cs:
+	do not force an extension on renamed files
+	fixes bug # 59677
+
 2004-06-16  John Luke  <jluke at cfl.rr.com>
 
 	* Gui/Dialogs/NewProjectDialog.cs: guard against unauthorized

Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/FileNode.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/FileNode.cs	2004-06-18 00:28:08 UTC (rev 1774)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/FileNode.cs	2004-06-18 01:08:08 UTC (rev 1775)
@@ -104,11 +104,12 @@
 				}
 				string oldname = ((ProjectFile)userData).Name;
 				
-				string oldExtension = Path.GetExtension(oldname);
+				// this forces an extension: bug# 59677
+				//string oldExtension = Path.GetExtension(oldname);
 				
-				if (Path.GetExtension(newName).Length == 0) {
-					newName += oldExtension;
-				}
+				//if (Path.GetExtension(newName).Length == 0) {
+				//	newName += oldExtension;
+				//}
 				
 				string newname = Path.GetDirectoryName(oldname) + Path.DirectorySeparatorChar + newName;
 				if (oldname != newname) {




More information about the Monodevelop-patches-list mailing list