diff options
author | stuconnolly <stuart02@gmail.com> | 2012-03-24 16:58:56 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-03-24 16:58:56 +0000 |
commit | aaa70cc00e443b01951034750eb85c22b557c277 (patch) | |
tree | 3c1bdd5fe6df126d0ad556f5be8ca9f258728e1b /Source/SPUserManager.m | |
parent | c5ab372f9d80c0f9ae94de28a4ebd59db42d466e (diff) | |
download | sequelpro-aaa70cc00e443b01951034750eb85c22b557c277.tar.gz sequelpro-aaa70cc00e443b01951034750eb85c22b557c277.tar.bz2 sequelpro-aaa70cc00e443b01951034750eb85c22b557c277.zip |
Fix layout issues when resizing the user manager's errors sheet.
Diffstat (limited to 'Source/SPUserManager.m')
-rw-r--r-- | Source/SPUserManager.m | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |