aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableSource.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-13 20:53:39 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-13 20:53:39 +0000
commit08fb692301568e7143271ffad9bbcb3a5b247de5 (patch)
treeeedeb574fb2859cb1bcb9ae2d237206f9c4f38fd /Source/TableSource.m
parentaeb5ec548006a76e926a2bd982b362e13251841b (diff)
downloadsequelpro-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/TableSource.m')
-rw-r--r--Source/TableSource.m9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/TableSource.m b/Source/TableSource.m
index 4feadddb..7f943850 100644
--- a/Source/TableSource.m
+++ b/Source/TableSource.m
@@ -872,10 +872,13 @@ fetches the result as an array with a dictionary for each row in it
* if contextInfo == addIndex: adds and index to the mysql-db if user hits ok
* if contextInfo == cannotremovefield: do nothing
*/
-- (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];
+ if ([sheet respondsToSelector:@selector(orderOut:)])
+ [sheet orderOut:nil];
+ else if ([sheet respondsToSelector:@selector(window)])
+ [[sheet window] orderOut:nil];
if ([contextInfo isEqualToString:@"addrow"]) {