aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableRelations.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-10-20 15:24:10 +0200
committerMax <post@wickenrode.com>2015-10-20 15:24:10 +0200
commit5357fd1375d19a6c5de96293b3899f430422a3c0 (patch)
tree18c0ca79b6be40aecbd8200ceedd9111a346bb63 /Source/SPTableRelations.m
parente12e3e86f26b47a51c10940bca1102326d47bf82 (diff)
downloadsequelpro-5357fd1375d19a6c5de96293b3899f430422a3c0.tar.gz
sequelpro-5357fd1375d19a6c5de96293b3899f430422a3c0.tar.bz2
sequelpro-5357fd1375d19a6c5de96293b3899f430422a3c0.zip
Replace a lot of SPBeginAlertSheet()s with the more concise SPOnewayAlertSheet()
This should also eliminate a few use-after-free crashes
Diffstat (limited to 'Source/SPTableRelations.m')
-rw-r--r--Source/SPTableRelations.m9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/SPTableRelations.m b/Source/SPTableRelations.m
index 134aa2fb..8a2a1568 100644
--- a/Source/SPTableRelations.m
+++ b/Source/SPTableRelations.m
@@ -526,10 +526,11 @@ static NSString *SPRelationOnDeleteKey = @"on_delete";
if ([connection queryErrored]) {
- SPBeginAlertSheet(NSLocalizedString(@"Unable to delete relation", @"error deleting relation message"),
- NSLocalizedString(@"OK", @"OK button"),
- nil, nil, [NSApp mainWindow], nil, nil, nil,
- [NSString stringWithFormat:NSLocalizedString(@"The selected relation couldn't be deleted.\n\nMySQL said: %@", @"error deleting relation informative message"), [connection lastErrorMessage]]);
+ SPOnewayAlertSheet(
+ NSLocalizedString(@"Unable to delete relation", @"error deleting relation message"),
+ [NSApp mainWindow],
+ [NSString stringWithFormat:NSLocalizedString(@"The selected relation couldn't be deleted.\n\nMySQL said: %@", @"error deleting relation informative message"), [connection lastErrorMessage]]
+ );
// Abort loop
break;