aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-06-13 00:35:56 +0000
committerrowanbeentje <rowan@beent.je>2010-06-13 00:35:56 +0000
commitf286f3f05162e663fb6bc6abaf2a08b1e02d1d86 (patch)
treefed7537221e2271e99eab6924217ce1879c4976f /Source/SPAppController.m
parent4abb1690517dc2c843588b9e6dcc67f407493d02 (diff)
downloadsequelpro-f286f3f05162e663fb6bc6abaf2a08b1e02d1d86.tar.gz
sequelpro-f286f3f05162e663fb6bc6abaf2a08b1e02d1d86.tar.bz2
sequelpro-f286f3f05162e663fb6bc6abaf2a08b1e02d1d86.zip
- Add support for tearing tabs off a window, into a new window containing the dragged tab
- Fix SPWindowController memory leak
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r--Source/SPAppController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index 37f79242..a6b965c7 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -302,8 +302,8 @@
// 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];
- [newWindow setReleasedWhenClosed:YES];
// Cascading defaults to on - retrieve the window origin automatically assigned by cascading,
// and convert to a top left point.