diff options
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 9a736f90..b8d6dd83 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -2483,16 +2483,10 @@ static NSString *SPAlterDatabaseAction = @"SPAlterDatabase"; return; } - [NSApp beginSheet:[userManagerInstance window] - modalForWindow:parentWindow - modalDelegate:self - didEndSelector:@selector(userManagerSheetDidEnd:returnCode:contextInfo:) - contextInfo:nil]; -} - -- (void)userManagerSheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void*)context -{ - [userManagerInstance release], userManagerInstance = nil; + [userManagerInstance beginSheetModalForWindow:parentWindow + completionHandler:^(){ + [userManagerInstance release], userManagerInstance = nil; + }]; } /** |