Permalink
Browse files

solved "An error occurred while saving." problem

  • Loading branch information...
aliueKurone
aliueKurone committed Feb 24, 2013
1 parent 17d9056 commit e9ec3cb7e3170723f34f4a12ad2af0f3cfc8264d
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/FRAProject.m
View
@@ -591,7 +591,7 @@ - (void)cleanUpDocument:(id)document
[self setFirstDocument:nil];
}
- [FRAManagedObjectContext deleteObject:document];
+ [documentsArrayController removeObject:document];
[[FRAApplicationDelegate sharedInstance] saveAction:nil]; // To remove it from memory
[[FRAManagedObjectContext undoManager] removeAllActions];
}

0 comments on commit e9ec3cb

Please sign in to comment.