aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authordrx777 <david.rekowski@gmx.de>2010-04-29 18:26:19 +0000
committerdrx777 <david.rekowski@gmx.de>2010-04-29 18:26:19 +0000
commite2810ccbe30371974a7df888dc5656ac9311677f (patch)
tree55e4f24a71ed0862620f3a75f9efcf001d257c89 /Source/TableDocument.m
parent47d42106c45d7663c05aaf6d3f0feab71798b51c (diff)
downloadsequelpro-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/TableDocument.m')
-rw-r--r--Source/TableDocument.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 724afca6..7b5c3d2f 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -4146,7 +4146,7 @@
}
SPDatabaseCopy *dbActionCopy = [[SPDatabaseCopy alloc] init];
[dbActionCopy setConnection: [self getConnection]];
- [dbActionCopy setParent: self];
+ [dbActionCopy setMessageWindow: tableWindow];
BOOL copyWithContent = [copyOnlyStructureButton state] == NSOffState;
@@ -4166,7 +4166,7 @@
}
SPDatabaseRename *dbActionRename = [[SPDatabaseRename alloc] init];
[dbActionRename setConnection: [self getConnection]];
- [dbActionRename setParent: self];
+ [dbActionRename setMessageWindow: tableWindow];
[dbActionRename renameDatabaseFrom: [self database]
to: [databaseRenameNameField stringValue]];