From 16735cc3fc2a9cd9e2a619d290a3319d563e0842 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Fri, 25 Jun 2010 01:53:29 +0000 Subject: 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. --- Source/SPIndexesController.m | 4 ++-- 1 file 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]; -- cgit v1.2.3