diff options
author | stuconnolly <stuart02@gmail.com> | 2010-06-25 01:53:29 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-06-25 01:53:29 +0000 |
commit | 16735cc3fc2a9cd9e2a619d290a3319d563e0842 (patch) | |
tree | b77aa993a66446c195f4dc6471fa39a9b8ededa2 /Source | |
parent | 2031d4b310b2742ea61ad6483d7e6dfeaadb44cc (diff) | |
download | sequelpro-16735cc3fc2a9cd9e2a619d290a3319d563e0842.tar.gz sequelpro-16735cc3fc2a9cd9e2a619d290a3319d563e0842.tar.bz2 sequelpro-16735cc3fc2a9cd9e2a619d290a3319d563e0842.zip |
Fix call to showErrorSheetWith: which should be made against SPTableStructure. Fixes logs http://spbug.com/875, http://spbug.com/876 and http://spbug.com/910.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPIndexesController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPIndexesController.m b/Source/SPIndexesController.m index 1c0fe8db..baef2738 100644 --- a/Source/SPIndexesController.m +++ b/Source/SPIndexesController.m @@ -472,7 +472,7 @@ [errorDictionary setObject:NSLocalizedString(@"Unable to delete relation", @"error deleting relation message") forKey:@"title"]; [errorDictionary setObject:[NSString stringWithFormat:NSLocalizedString(@"An error occurred while trying to delete the relation '%@'.\n\nMySQL said: %@", @"error deleting relation informative message"), constraintName, [connection getLastErrorMessage]] forKey:@"message"]; - [[self onMainThread] showErrorSheetWith:errorDictionary]; + [[tableStructure onMainThread] showErrorSheetWith:errorDictionary]; } } @@ -491,7 +491,7 @@ [errorDictionary setObject:NSLocalizedString(@"Unable to delete index", @"error deleting index message") forKey:@"title"]; [errorDictionary setObject:[NSString stringWithFormat:NSLocalizedString(@"An error occured while trying to delete the index.\n\nMySQL said: %@", @"error deleting index informative message"), [connection getLastErrorMessage]] forKey:@"message"]; - [[self onMainThread] showErrorSheetWith:errorDictionary]; + [[tableStructure onMainThread] showErrorSheetWith:errorDictionary]; } else { [tableData resetAllData]; |