From aaa70cc00e443b01951034750eb85c22b557c277 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sat, 24 Mar 2012 16:58:56 +0000 Subject: Fix layout issues when resizing the user manager's errors sheet. --- Source/SPUserManager.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/SPUserManager.m') diff --git a/Source/SPUserManager.m b/Source/SPUserManager.m index fb837060..719a9639 100644 --- a/Source/SPUserManager.m +++ b/Source/SPUserManager.m @@ -591,8 +591,11 @@ static const NSString *SPTableViewNameColumnID = @"NameColumn"; [[self window] makeFirstResponder:self]; isSaving = YES; + [[self managedObjectContext] save:&error]; + isSaving = NO; + if (error != nil) [errorsString appendString:[error localizedDescription]]; [self.mySqlConnection queryString:@"FLUSH PRIVILEGES"]; @@ -602,6 +605,7 @@ static const NSString *SPTableViewNameColumnID = @"NameColumn"; [errorsTextView setString:errorsString]; [NSApp beginSheet:errorsSheet modalForWindow:[NSApp keyWindow] modalDelegate:nil didEndSelector:NULL contextInfo:nil]; [errorsString release]; + return; } -- cgit v1.2.3