diff options
author | stuconnolly <stuart02@gmail.com> | 2013-01-17 16:36:20 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2013-01-17 16:36:20 +0000 |
commit | f56224f93ffb8c8bd0a416d9cccea4d83c07c358 (patch) | |
tree | 581b7b04bd45a00d75fabe81860b26dd5b3e4fd0 /Source | |
parent | f5e507a38ba2a73619cfc3349257507c445464af (diff) | |
download | sequelpro-f56224f93ffb8c8bd0a416d9cccea4d83c07c358.tar.gz sequelpro-f56224f93ffb8c8bd0a416d9cccea4d83c07c358.tar.bz2 sequelpro-f56224f93ffb8c8bd0a416d9cccea4d83c07c358.zip |
Issue #1422: Update the user manager's resource limit formatters to have a minumum value of zero.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPUserManager.m | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Source/SPUserManager.m b/Source/SPUserManager.m index 655aa460..a320a8c6 100644 --- a/Source/SPUserManager.m +++ b/Source/SPUserManager.m @@ -482,26 +482,33 @@ static const NSString *SPTableViewNameColumnID = @"NameColumn"; */ - (IBAction)doApply:(id)sender { - NSError *error = nil; errorsString = [[NSMutableString alloc] init]; // Change the first responder to end editing in any field [[self window] makeFirstResponder:self]; isSaving = YES; + + NSError *error = nil; [[self managedObjectContext] save:&error]; isSaving = NO; - if (error != nil) [errorsString appendString:[error localizedDescription]]; + if (error) [errorsString appendString:[error localizedDescription]]; [[self connection] queryString:@"FLUSH PRIVILEGES"]; // Display any errors if ([errorsString length]) { [errorsTextView setString:errorsString]; - [NSApp beginSheet:errorsSheet modalForWindow:[NSApp keyWindow] modalDelegate:nil didEndSelector:NULL contextInfo:nil]; + + [NSApp beginSheet:errorsSheet + modalForWindow:[NSApp keyWindow] + modalDelegate:nil + didEndSelector:NULL + contextInfo:nil]; + [errorsString release]; return; |