mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-17 16:12:17 +00:00
Initialize backup wrapper after wrapperPath since it depends on it
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@38252 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5c25a46af2
commit
a180a70e83
2 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-12-16 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Framework/PCProject.m
|
||||
Initialize backup wrapper after wrapperPath since it depends on it!
|
||||
|
||||
2014-12-16 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Framework/PCMakefileFactory.m
|
||||
|
|
|
@ -472,11 +472,11 @@ NSString
|
|||
- (BOOL)save
|
||||
{
|
||||
NSFileManager *fm = [NSFileManager defaultManager];
|
||||
int spCount = [loadedSubprojects count];
|
||||
NSUInteger spCount = [loadedSubprojects count];
|
||||
int i;
|
||||
NSString *wrapperFile = [projectName stringByAppendingPathExtension: @"pcproj"];
|
||||
NSString *wrapperFile;
|
||||
NSString *file = @"PC.project";
|
||||
NSString *backup = [wrapperPath stringByAppendingPathExtension:@"backup"];
|
||||
NSString *backup;
|
||||
NSMutableDictionary *dict = [projectDict mutableCopy];
|
||||
NSData *dictData = nil;
|
||||
|
||||
|
@ -484,10 +484,12 @@ NSString
|
|||
[dict removeObjectForKey: PCWindows];
|
||||
[dict removeObjectForKey: PCLastEditing];
|
||||
|
||||
// initialize the wrapper...
|
||||
// initialize the wrappers..
|
||||
wrapperFile = [projectName stringByAppendingPathExtension: @"pcproj"];
|
||||
projectFileWrapper = [[NSFileWrapper alloc] initDirectoryWithFileWrappers:
|
||||
[NSMutableDictionary dictionaryWithCapacity: 3]];
|
||||
wrapperPath = [projectPath stringByAppendingPathComponent: wrapperFile];
|
||||
backup = [wrapperPath stringByAppendingPathExtension:@"backup"];
|
||||
|
||||
// load subprojects...
|
||||
for (i = 0; i < spCount; i++)
|
||||
|
|
Loading…
Reference in a new issue