Commit host removals immediately so they remain if the app is unexpectedly terminated

This commit is contained in:
Cameron Gutman 2015-07-09 23:52:05 -07:00
parent 2d02ce2a1b
commit 48d1c1a080

View File

@ -54,6 +54,7 @@
- (void) removeHost:(Host*)host { - (void) removeHost:(Host*)host {
[[self.appDelegate managedObjectContext] deleteObject:host]; [[self.appDelegate managedObjectContext] deleteObject:host];
[self saveHosts];
} }
- (void) saveHosts { - (void) saveHosts {