From 230f6295f5c6a80201410bc0347e83920df08bfe Mon Sep 17 00:00:00 2001 From: drx777 Date: Thu, 29 Apr 2010 18:31:39 +0000 Subject: Cleanup/simplification: using messageWindow property directly instead of the getTableWindow method; removed the latter --- Source/SPDatabaseInfo.m | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Source/SPDatabaseInfo.m') diff --git a/Source/SPDatabaseInfo.m b/Source/SPDatabaseInfo.m index 6c5b3f66..883ebef2 100644 --- a/Source/SPDatabaseInfo.m +++ b/Source/SPDatabaseInfo.m @@ -27,10 +27,6 @@ @implementation SPDatabaseInfo -- (NSObject *)getTableWindow { - return messageWindow; -} - -(BOOL)databaseExists:(NSString *)databaseName { NSArray *names = [self listDBs]; return [names containsObject:databaseName]; @@ -54,7 +50,7 @@ if ([connection queryErrored]) { SPBeginAlertSheet(NSLocalizedString(@"Failed to retrieve databases list", @"database list error message"), - NSLocalizedString(@"OK", @"OK button"), nil, nil, [self getTableWindow], self, nil, nil, nil, + NSLocalizedString(@"OK", @"OK button"), nil, nil, messageWindow, self, nil, nil, nil, [NSString stringWithFormat:NSLocalizedString(@"An error occured while trying to retrieve a list of databases.\n\nMySQL said: %@", @"database list error informative message"), [connection getLastErrorMessage]]); -- cgit v1.2.3