mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-19 01:51:09 +00:00
Create project in a path with the project name.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@31697 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
eb2972f8fb
commit
e9ecaf9b08
1 changed files with 3 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
Authors: Philippe C.D. Robert
|
||||
Serg Stoyan
|
||||
Riccardo Mottola
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
|
@ -749,7 +750,7 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
|
|||
NSString *className = [projectTypes objectForKey:projectType];
|
||||
PCProject<ProjectType> *projectCreator;
|
||||
PCProject *project = nil;
|
||||
|
||||
|
||||
if ((project = [loadedProjects objectForKey: [aPath stringByDeletingLastPathComponent]]) != nil)
|
||||
{
|
||||
[[project projectWindow] makeKeyAndOrderFront:self];
|
||||
|
@ -810,7 +811,7 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
|
|||
multiple:NO
|
||||
title:@"New Project"
|
||||
accView:projectTypeAccessaryView];
|
||||
filePath = [files objectAtIndex:0];
|
||||
filePath = [[files objectAtIndex:0] stringByDeletingPathExtension];
|
||||
if (filePath != nil)
|
||||
{
|
||||
if ([filePath rangeOfString: @" "].location != NSNotFound ||
|
||||
|
|
Loading…
Reference in a new issue