[Monodevelop-patches-list] r1916 - in trunk/MonoDevelop/Core/src/Main/Base: . Gui/Dialogs

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Mon Jul 12 14:51:06 EDT 2004


Author: jluke
Date: 2004-07-12 14:51:05 -0400 (Mon, 12 Jul 2004)
New Revision: 1916

Modified:
   trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
   trunk/MonoDevelop/Core/src/Main/Base/Gui/Dialogs/NewProjectDialog.cs
Log:
2004-07-12  John Luke  <jluke at cfl.rr.com>
 
        * Gui/Dialogs/NewProjectDialog.cs: catch an IOException when
        creating a project with the name of an existing file
        should fix bug #61034



Modified: trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/ChangeLog	2004-07-12 01:03:23 UTC (rev 1915)
+++ trunk/MonoDevelop/Core/src/Main/Base/ChangeLog	2004-07-12 18:51:05 UTC (rev 1916)
@@ -1,3 +1,9 @@
+2004-07-12  John Luke  <jluke at cfl.rr.com>
+
+	* Gui/Dialogs/NewProjectDialog.cs: catch an IOException when
+	creating a project with the name of an existing file
+	should fix bug #61034
+
 2004-07-05  Todd Berman  <tberman at off.net>
 
 	* Commands/MenuItemBuilders.cs: properly escape filename with

Modified: trunk/MonoDevelop/Core/src/Main/Base/Gui/Dialogs/NewProjectDialog.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/Gui/Dialogs/NewProjectDialog.cs	2004-07-12 01:03:23 UTC (rev 1915)
+++ trunk/MonoDevelop/Core/src/Main/Base/Gui/Dialogs/NewProjectDialog.cs	2004-07-12 18:51:05 UTC (rev 1916)
@@ -233,6 +233,10 @@
 				{
 					System.IO.Directory.CreateDirectory (ProjectSolution);
 				}
+				catch (IOException ioException)
+				{
+					messageService.ShowError (String.Format (GettextCatalog.GetString ("Could not create file {0}. File already exists."), ProjectSolution));
+				}
 				catch (UnauthorizedAccessException accessException)
 				{
 					messageService.ShowError (String.Format (GettextCatalog.GetString ("You do not have permission to create to {0}"), ProjectSolution));




More information about the Monodevelop-patches-list mailing list