From 46c4253255f91738b6b00a7f74a4646651eac39a Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Wed, 31 Aug 2011 21:35:46 +0000 Subject: - Reorder window instantiation process to ensure window has had its size set before adding the main views, fixing resize issues including Issue #1141 on 10.6 - Remove accidentally committed log line --- Source/SPAppController.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/SPAppController.m') diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 2a784f86..271dd661 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -1221,7 +1221,6 @@ YY_BUFFER_STATE yy_scan_string (const char *); // Create a new window controller, and set up a new connection view within it. SPWindowController *newWindowController = [[SPWindowController alloc] initWithWindowNibName:@"MainWindow"]; - [newWindowController addNewConnection:self]; NSWindow *newWindow = [newWindowController window]; // Cascading defaults to on - retrieve the window origin automatically assigned by cascading, @@ -1237,6 +1236,9 @@ YY_BUFFER_STATE yy_scan_string (const char *); [newWindow setFrameUsingName:@"DBView"]; } + // Add the connection view + [newWindowController addNewConnection:self]; + // Cascade according to the statically stored cascade location. cascadeLocation = [newWindow cascadeTopLeftFromPoint:cascadeLocation]; -- cgit v1.2.3