aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPSSHTunnel.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-05-23 21:44:59 +0000
committerrowanbeentje <rowan@beent.je>2010-05-23 21:44:59 +0000
commitc661b409eaa0e29d9e012b79e7a66574a554817a (patch)
tree49b310ded9a226a66aa53444c9ba112824854f68 /Source/SPSSHTunnel.m
parentb66006f3755c6a57dfc60d4133bc4dc4da0fef56 (diff)
downloadsequelpro-c661b409eaa0e29d9e012b79e7a66574a554817a.tar.gz
sequelpro-c661b409eaa0e29d9e012b79e7a66574a554817a.tar.bz2
sequelpro-c661b409eaa0e29d9e012b79e7a66574a554817a.zip
Initial implementation of tabs:
- Addition of PSMTabBar framework - Rework away from a document-based TableDocument - Support tabs throughout the application - Add menu items for creating tabs, and add support for dragging tabs to different windows
Diffstat (limited to 'Source/SPSSHTunnel.m')
-rw-r--r--Source/SPSSHTunnel.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/SPSSHTunnel.m b/Source/SPSSHTunnel.m
index 6d9e64ca..59acb9e0 100644
--- a/Source/SPSSHTunnel.m
+++ b/Source/SPSSHTunnel.m
@@ -72,6 +72,8 @@
}
parentWindow = nil;
+ sshQuestionDialog = nil;
+ sshPasswordDialog = nil;
password = nil;
keychainName = nil;
keychainAccount = nil;
@@ -102,6 +104,11 @@
*/
- (void)setParentWindow:(NSWindow *)theWindow
{
+
+ // As this object is not a NSWindowController, use manual top-level nib item management
+ if (sshQuestionDialog) [sshQuestionDialog release], sshQuestionDialog = nil;
+ if (sshPasswordDialog) [sshPasswordDialog release], sshPasswordDialog = nil;
+
parentWindow = theWindow;
if (![NSBundle loadNibNamed:@"SSHQuestionDialog" owner:self]) {
NSLog(@"SSH query dialog could not be loaded; SSH tunnels will not function correctly.");
@@ -646,6 +653,10 @@
if (password) [password release];
if (keychainName) [keychainName release];
if (keychainAccount) [keychainAccount release];
+
+ // As this object is not a NSWindowController, use manual top-level nib item management
+ if (sshQuestionDialog) [sshQuestionDialog release], sshQuestionDialog = nil;
+ if (sshPasswordDialog) [sshPasswordDialog release], sshPasswordDialog = nil;
[super dealloc];
}