File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ @interface SPTableRelations ()
53
53
54
54
- (void )_refreshRelationDataForcingCacheRefresh : (BOOL )clearAllCaches ;
55
55
- (void )_updateAvailableTableColumns ;
56
+ - (void )addAlertDidEnd : (NSAlert *)alert returnCode : (NSInteger )returnCode contextInfo : (void *)contextInfo ;
56
57
57
58
@end
58
59
@@ -215,15 +216,18 @@ - (IBAction)confirmAddRelation:(id)sender
215
216
}
216
217
}
217
218
218
- [[alert onMainThread ] beginSheetModalForWindow: [tableDocumentInstance parentWindow ] completionHandler: ^(NSModalResponse returnCode) {
219
- [self performSelector: @selector (openRelationSheet: ) withObject: self afterDelay: 0.0 ];
220
- }];
219
+ [[alert onMainThread ] beginSheetModalForWindow: [tableDocumentInstance parentWindow ] modalDelegate: self didEndSelector: @selector (addAlertDidEnd:returnCode:contextInfo: ) contextInfo: NULL ];
221
220
}
222
221
else {
223
222
[self _refreshRelationDataForcingCacheRefresh: YES ];
224
223
}
225
224
}
226
225
226
+ - (void )addAlertDidEnd : (NSAlert *)alert returnCode : (NSInteger )returnCode contextInfo : (void *)contextInfo
227
+ {
228
+ [self performSelector: @selector (openRelationSheet: ) withObject: self afterDelay: 0.0 ];
229
+ }
230
+
227
231
/* *
228
232
* Updates the available columns when the user selects a table.
229
233
*/
You can’t perform that action at this time.
0 commit comments