aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPUserManager.m10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/SPUserManager.m b/Source/SPUserManager.m
index 565cfc6f..83f0a12f 100644
--- a/Source/SPUserManager.m
+++ b/Source/SPUserManager.m
@@ -594,6 +594,10 @@ static const NSString *SPTableViewNameColumnID = @"NameColumn";
*/
- (IBAction)doCancel:(id)sender
{
+
+ // Change the first responder to end editing in any field
+ [[self window] makeFirstResponder:self];
+
[[self managedObjectContext] rollback];
// Close sheet
@@ -609,9 +613,9 @@ static const NSString *SPTableViewNameColumnID = @"NameColumn";
NSError *error = nil;
errorsString = [[NSMutableString alloc] init];
- //Change the first responder to end editing in any field
- [[self window] makeFirstResponder:self];
-
+ // Change the first responder to end editing in any field
+ [[self window] makeFirstResponder:self];
+
isSaving = YES;
[[self managedObjectContext] save:&error];
isSaving = NO;