aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseCopy.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/SPDatabaseCopy.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/SPDatabaseCopy.m')
-rw-r--r--Source/SPDatabaseCopy.m8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/SPDatabaseCopy.m b/Source/SPDatabaseCopy.m
index 6fc52ae8..5f0c8fe8 100644
--- a/Source/SPDatabaseCopy.m
+++ b/Source/SPDatabaseCopy.m
@@ -41,10 +41,6 @@
return dbInfo;
}
-- (NSObject *)getTableWindow {
- return messageWindow;
-}
-
- (BOOL)copyDatabaseFrom: (NSString *)sourceDatabaseName to: (NSString *)targetDatabaseName withContent:(BOOL)copyWithContent {
SPDatabaseInfo *databaseInfo = [self getDBInfoObject];
@@ -58,7 +54,7 @@
tables = [connection listTablesFromDB:sourceDatabaseName];
} else {
SPBeginAlertSheet(NSLocalizedString(@"Cannot create existing database", @"create database exists 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 create the target database.\n\nDatabase %@ already exists.",
@"create database error informative message"),
targetDatabaseName]);
@@ -87,7 +83,7 @@
if ([connection queryErrored]) {
SPBeginAlertSheet(NSLocalizedString(@"Failed to create database", @"create database 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 create the target database.\n\nMySQL said: %@",
@"create database error informative message"),
[connection getLastErrorMessage]]);