aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseInfo.m
diff options
context:
space:
mode:
authordrx777 <david.rekowski@gmx.de>2010-04-29 18:31:39 +0000
committerdrx777 <david.rekowski@gmx.de>2010-04-29 18:31:39 +0000
commit230f6295f5c6a80201410bc0347e83920df08bfe (patch)
tree117a1b34368d5c007b564438012f13e9c3db4e63 /Source/SPDatabaseInfo.m
parente2810ccbe30371974a7df888dc5656ac9311677f (diff)
downloadsequelpro-230f6295f5c6a80201410bc0347e83920df08bfe.tar.gz
sequelpro-230f6295f5c6a80201410bc0347e83920df08bfe.tar.bz2
sequelpro-230f6295f5c6a80201410bc0347e83920df08bfe.zip
Cleanup/simplification: using messageWindow property directly instead of the getTableWindow method; removed the latter
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]]);