diff options
author | drx777 <david.rekowski@gmx.de> | 2010-04-29 18:26:19 +0000 |
---|---|---|
committer | drx777 <david.rekowski@gmx.de> | 2010-04-29 18:26:19 +0000 |
commit | e2810ccbe30371974a7df888dc5656ac9311677f (patch) | |
tree | 55e4f24a71ed0862620f3a75f9efcf001d257c89 /Source/SPDatabaseCopy.m | |
parent | 47d42106c45d7663c05aaf6d3f0feab71798b51c (diff) | |
download | sequelpro-e2810ccbe30371974a7df888dc5656ac9311677f.tar.gz sequelpro-e2810ccbe30371974a7df888dc5656ac9311677f.tar.bz2 sequelpro-e2810ccbe30371974a7df888dc5656ac9311677f.zip |
Now longer using [NSApp mainWindow] but a reference to the correct window for message sheets. It could have caused messages appearing in the wrong window.
Diffstat (limited to 'Source/SPDatabaseCopy.m')
-rw-r--r-- | Source/SPDatabaseCopy.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPDatabaseCopy.m b/Source/SPDatabaseCopy.m index e5daae0c..6fc52ae8 100644 --- a/Source/SPDatabaseCopy.m +++ b/Source/SPDatabaseCopy.m @@ -36,13 +36,13 @@ } else { dbInfo = [[SPDatabaseInfo alloc] init]; [dbInfo setConnection:[self connection]]; - [dbInfo setParent:[self parent]]; + [dbInfo setMessageWindow:messageWindow]; } return dbInfo; } - (NSObject *)getTableWindow { - return [NSApp mainWindow]; + return messageWindow; } - (BOOL)copyDatabaseFrom: (NSString *)sourceDatabaseName to: (NSString *)targetDatabaseName withContent:(BOOL)copyWithContent { |