diff options
author | rowanbeentje <rowan@beent.je> | 2011-08-31 21:35:46 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2011-08-31 21:35:46 +0000 |
commit | 46c4253255f91738b6b00a7f74a4646651eac39a (patch) | |
tree | d9952f3f1e1bf5e40ae74fc61cb195cfa0aa76f4 /Source/SPAppController.m | |
parent | debc98eb182d845e4ab803c1cd1d84908da745d3 (diff) | |
download | sequelpro-46c4253255f91738b6b00a7f74a4646651eac39a.tar.gz sequelpro-46c4253255f91738b6b00a7f74a4646651eac39a.tar.bz2 sequelpro-46c4253255f91738b6b00a7f74a4646651eac39a.zip |
- 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
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r-- | Source/SPAppController.m | 4 |
1 files changed, 3 insertions, 1 deletions
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]; |