mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-17 16:12:17 +00:00
Fix segfault when closing Gorm and Renaissance projects
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@18061 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
467e7fe100
commit
ac94385c11
6 changed files with 11 additions and 1 deletions
|
@ -114,6 +114,7 @@
|
|||
rootCategories = [[NSDictionary
|
||||
dictionaryWithObjects:rootObjects forKeys:rootKeys] retain];
|
||||
|
||||
principalClassField = nil;
|
||||
}
|
||||
|
||||
return self;
|
||||
|
|
|
@ -136,7 +136,8 @@ static PCGormProj *_creator = nil;
|
|||
[fm copyPath:_file toPath:[path stringByAppendingPathComponent:@"main.m"] handler:nil];
|
||||
|
||||
// Copy the gorm wrapper
|
||||
gormTemplatePath = [path stringByAppendingPathComponent: @"BaseInterface.gorm"];
|
||||
//gormTemplatePath = [path stringByAppendingPathComponent: @"BaseInterface.gorm"];
|
||||
gormTemplatePath = [path stringByAppendingPathComponent: [NSString stringWithFormat: @"%@.gorm", [path lastPathComponent]]];
|
||||
_file = [[NSBundle bundleForClass:[self class]] pathForResource:@"BaseInterface" ofType:@"gorm"];
|
||||
[fm copyPath:_file toPath:gormTemplatePath handler:nil];
|
||||
|
||||
|
|
|
@ -199,6 +199,9 @@
|
|||
|
||||
rootCategories = [[NSDictionary
|
||||
dictionaryWithObjects:rootObjects forKeys:rootKeys] retain];
|
||||
|
||||
appClassField = nil;
|
||||
appImageField = nil;
|
||||
}
|
||||
|
||||
return self;
|
||||
|
|
|
@ -318,6 +318,7 @@ NSString *ActiveProjectDidChangeNotification = @"ActiveProjectDidChange";
|
|||
|
||||
[self setActiveProject:project];
|
||||
[project setDelegate:self];
|
||||
[self saveProject];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
|
|
@ -188,6 +188,7 @@
|
|||
dir = NSHomeDirectory();
|
||||
}
|
||||
|
||||
[projectTypePopup selectItemAtIndex:0];
|
||||
runResult = [sp runModalForDirectory:dir file:@""];
|
||||
if (runResult == NSOKButton)
|
||||
{
|
||||
|
|
|
@ -152,6 +152,9 @@
|
|||
|
||||
rootCategories = [[NSDictionary
|
||||
dictionaryWithObjects:rootObjects forKeys:rootKeys] retain];
|
||||
|
||||
appClassField = nil;
|
||||
appImageField = nil;
|
||||
}
|
||||
|
||||
return self;
|
||||
|
|
Loading…
Reference in a new issue