aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authormltownsend <mltownsend@gmail.com>2010-02-02 21:28:36 +0000
committermltownsend <mltownsend@gmail.com>2010-02-02 21:28:36 +0000
commit16ef7aa0267b6e1a95598263aa18fa0048b914d2 (patch)
tree083b2bd9d3650b62db4dc05562f524435fe1b2dc /Source
parent6e420c763f8f68a42c7f944c3c3e951e46bc7b33 (diff)
downloadsequelpro-16ef7aa0267b6e1a95598263aa18fa0048b914d2.tar.gz
sequelpro-16ef7aa0267b6e1a95598263aa18fa0048b914d2.tar.bz2
sequelpro-16ef7aa0267b6e1a95598263aa18fa0048b914d2.zip
Refresh function added to user manager.
Diffstat (limited to 'Source')
-rw-r--r--Source/SPUserManager.m13
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/SPUserManager.m b/Source/SPUserManager.m
index c2137f30..98db96f5 100644
--- a/Source/SPUserManager.m
+++ b/Source/SPUserManager.m
@@ -636,10 +636,12 @@
{
if ([self.managedObjectContext hasChanges])
{
- NSAlert *alert = [[[NSAlert alloc] init] autorelease];
- [alert addButtonWithTitle:NSLocalizedString(@"Continue", @"Continue")];
- [alert addButtonWithTitle:NSLocalizedString(@"Cancel",@"Cancel")];
- [alert setMessageText:@"Window has changes. All changes will be lost!"];
+ //NSAlert *alert = [[[NSAlert alloc] init] autorelease];
+ NSAlert *alert = [NSAlert alertWithMessageText:@"Window has changes. All changes will be lost!"
+ defaultButton:NSLocalizedString(@"Continue", @"Continue")
+ alternateButton:NSLocalizedString(@"Cancel",@"Cancel")
+ otherButton:nil
+ informativeTextWithFormat:@"Window has changes. All changes will be lost!"];
[alert setAlertStyle:NSWarningAlertStyle];
if ([alert runModal] == NSAlertAlternateReturn) // cancel
{
@@ -647,7 +649,6 @@
}
}
[self.managedObjectContext reset];
- [self _initializeUsers];
[treeController fetch:nil];
}
@@ -793,7 +794,7 @@
- (void)userManagerSheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void*)context
{
- //[self refresh:nil];
+ [self refresh:nil];
}
- (BOOL)updateUsers:(NSArray *)updatedUsers