aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableCopy.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/SPTableCopy.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/SPTableCopy.m')
-rw-r--r--Source/SPTableCopy.m8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/SPTableCopy.m b/Source/SPTableCopy.m
index 19bff7c2..ab485b60 100644
--- a/Source/SPTableCopy.m
+++ b/Source/SPTableCopy.m
@@ -27,10 +27,6 @@
@implementation SPTableCopy
-- (NSObject *)getTableWindow {
- return messageWindow;
-}
-
- (NSString *)getCreateTableStatementFor: (NSString *)tableName inDB: (NSString *)sourceDB {
NSString *showCreateTableStatment = [NSString stringWithFormat:@"SHOW CREATE TABLE %@.%@",
[sourceDB backtickQuotedString],
@@ -40,7 +36,7 @@
if ([connection queryErrored]) {
SPBeginAlertSheet(NSLocalizedString(@"Failed to show create table statement", @"show create table 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 the create table statement for a table.\n\nMySQL said: %@",
@"show create table error informative message"),
[connection getLastErrorMessage]]);
@@ -78,7 +74,7 @@
if ([connection queryErrored]) {
SPBeginAlertSheet(NSLocalizedString(@"Failed to copy table", @"copy table 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 copy a table.\n\nMySQL said: %@",
@"copy table error informative message"),
[connection getLastErrorMessage]]);