diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-01-13 20:53:39 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-01-13 20:53:39 +0000 |
commit | 08fb692301568e7143271ffad9bbcb3a5b247de5 (patch) | |
tree | eedeb574fb2859cb1bcb9ae2d237206f9c4f38fd /Source/TableDocument.m | |
parent | aeb5ec548006a76e926a2bd982b362e13251841b (diff) | |
download | sequelpro-08fb692301568e7143271ffad9bbcb3a5b247de5.tar.gz sequelpro-08fb692301568e7143271ffad9bbcb3a5b247de5.tar.bz2 sequelpro-08fb692301568e7143271ffad9bbcb3a5b247de5.zip |
• fixed several sheetDidEnd selectors to close a NSAlert or NSWindow properly to avoid overlapping sheets
• F5 completion
- if a table is selected and no further parsing info is given show that table and its fields at the top of the suggestions
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 88578b08..f61ead71 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -1130,8 +1130,15 @@ * if contextInfo == removeDatabase -> Remove the selected database * if contextInfo == addDatabase -> Add a new database */ -- (void)sheetDidEnd:(NSWindow *)sheet returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo +- (void)sheetDidEnd:(id)sheet returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo { + + // Order out current sheet to suppress overlapping of sheets + if ([sheet respondsToSelector:@selector(orderOut:)]) + [sheet orderOut:nil]; + else if ([sheet respondsToSelector:@selector(window)]) + [[sheet window] orderOut:nil]; + // Remove the current database if ([contextInfo isEqualToString:@"removeDatabase"]) { if (returnCode == NSAlertDefaultReturn) { |