aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableRelations.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-04-16 03:06:42 +0200
committerMax <post@wickenrode.com>2015-04-16 03:06:42 +0200
commit55951d00cde44cfc654a2a6cb97e941eca2eb70f (patch)
tree82b258f770e37a418f72f9657617b27a5b7be6db /Source/SPTableRelations.m
parent734d3a90187734b7d7d4678229644573ccdbf7bb (diff)
downloadsequelpro-55951d00cde44cfc654a2a6cb97e941eca2eb70f.tar.gz
sequelpro-55951d00cde44cfc654a2a6cb97e941eca2eb70f.tar.bz2
sequelpro-55951d00cde44cfc654a2a6cb97e941eca2eb70f.zip
Silly me, tried to use a method that was newer than 10.6…
Diffstat (limited to 'Source/SPTableRelations.m')
-rw-r--r--Source/SPTableRelations.m10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/SPTableRelations.m b/Source/SPTableRelations.m
index 0caf78b6..134aa2fb 100644
--- a/Source/SPTableRelations.m
+++ b/Source/SPTableRelations.m
@@ -53,6 +53,7 @@ static NSString *SPRelationOnDeleteKey = @"on_delete";
- (void)_refreshRelationDataForcingCacheRefresh:(BOOL)clearAllCaches;
- (void)_updateAvailableTableColumns;
+- (void)addAlertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;
@end
@@ -215,15 +216,18 @@ static NSString *SPRelationOnDeleteKey = @"on_delete";
}
}
- [[alert onMainThread] beginSheetModalForWindow:[tableDocumentInstance parentWindow] completionHandler:^(NSModalResponse returnCode) {
- [self performSelector:@selector(openRelationSheet:) withObject:self afterDelay:0.0];
- }];
+ [[alert onMainThread] beginSheetModalForWindow:[tableDocumentInstance parentWindow] modalDelegate:self didEndSelector:@selector(addAlertDidEnd:returnCode:contextInfo:) contextInfo:NULL];
}
else {
[self _refreshRelationDataForcingCacheRefresh:YES];
}
}
+- (void)addAlertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo
+{
+ [self performSelector:@selector(openRelationSheet:) withObject:self afterDelay:0.0];
+}
+
/**
* Updates the available columns when the user selects a table.
*/