Skip to content

Commit

Permalink
Merge pull request #43 from aliueKurone/for_pull_request
Browse files Browse the repository at this point in the history
solved "An error occurred while saving." problem
  • Loading branch information
Jean-François Moy committed Jun 17, 2013
2 parents 17d9056 + e9ec3cb commit 312c9f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/FRAProject.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 312c9f3

Please sign in to comment.