mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-14 06:31:31 +00:00
Fix wrong declaration and missing subtype option
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@40294 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d894b87557
commit
5792e6dbfc
3 changed files with 14 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2017-01-17 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Framework/PCProjectManager.m
|
||||
* Modules/Projects/Application/PCAppProject.h
|
||||
Fix wrong declaration and missing subtype option.
|
||||
|
||||
2017-01-13 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Framework/PCProjectManager.m
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
|
||||
|
||||
Copyright (C) 2000-2010 Free Software Foundation
|
||||
Copyright (C) 2000-2017 Free Software Foundation
|
||||
|
||||
Authors: Philippe C.D. Robert
|
||||
Serg Stoyan
|
||||
|
@ -1346,11 +1346,15 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
|
|||
NSString *className = [projectTypes objectForKey:projectType];
|
||||
PCProject<ProjectType> *projectCreator;
|
||||
PCProject *subproject = nil;
|
||||
NSString *subType = nil;
|
||||
|
||||
if ([projectType isEqualToString:@"Application"])
|
||||
subType = PCProjectInterfaceGorm;
|
||||
|
||||
projectCreator = [bundleManager objectForClassName:className
|
||||
bundleType:@"project"
|
||||
protocol:@protocol(ProjectType)];
|
||||
if (!(subproject = [projectCreator createProjectAt:aPath]))
|
||||
if (!(subproject = [projectCreator createProjectAt:aPath withOption:subType]))
|
||||
{
|
||||
NSRunAlertPanel(@"New Subproject",
|
||||
@"Internal error!"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
|
||||
|
||||
Copyright (C) 2001-2016 Free Software Foundation
|
||||
Copyright (C) 2001-2017 Free Software Foundation
|
||||
|
||||
Authors: Philippe C.D. Robert
|
||||
Serg Stoyan
|
||||
|
@ -102,7 +102,7 @@
|
|||
- (void)loadInfoFile;
|
||||
- (void)dealloc;
|
||||
|
||||
- (PCProject *)createProjectAt:(NSString *)path withOption:projOption;
|
||||
- (PCProject *)createProjectAt:(NSString *)path withOption:(NSString *)projOption;
|
||||
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in a new issue