aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseInfo.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPDatabaseInfo.m')
-rw-r--r--Source/SPDatabaseInfo.m6
1 files changed, 1 insertions, 5 deletions
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]]);