diff options
author | Alan McGovern <alan.mcgovern@gmail.com> | 2011-09-21 13:17:56 +0400 |
---|---|---|
committer | Alan McGovern <alan.mcgovern@gmail.com> | 2011-09-21 13:58:42 +0400 |
commit | 0d30764270257e13bdd8cc0b622cc2cd003392b0 (patch) | |
tree | e06f060a77232a55618c7529989f9559cc27c1c9 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects | |
parent | ab73bbc4e3d4091e16f2178df0fbb6bca0d5cf89 (diff) |
[Core] Disallow spaces in project names
IPhone projects with embedded spaces in their names were creating xib files
where the class name embedded in the xib had a space. This resulted
in breakage when loading the xib in xcode as the embedded name did not
match the name of the actual obj-c class. The simplest fix is to
simply disallow spaces in project names as this kind of issue could
bite us in many places otherwise. Fixes bug #933.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs index 709ff878b3..4fe2865248 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs @@ -393,9 +393,10 @@ namespace MonoDevelop.Ide.Projects { if ( !FileService.IsValidPath (solution) || !FileService.IsValidFileName(name) || + name.IndexOf (' ') >= 0 || !FileService.IsValidPath(location)) { - MessageService.ShowError (GettextCatalog.GetString ("Illegal project name.\nOnly use letters, digits, space, '.' or '_'.")); + MessageService.ShowError (GettextCatalog.GetString ("Illegal project name.\nOnly use letters, digits, '.' or '_'.")); return false; } |