Make sure the new server panel starts out clean
authorMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 3 Feb 2009 00:01:34 +0000 (19:01 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 3 Feb 2009 15:14:34 +0000 (10:14 -0500)
iPhoto2Ansel/AnselExportController.m

index fc7bc20..c666d70 100644 (file)
@@ -159,8 +159,7 @@ NSString * const TURAnselServerPasswordKey = @"password";
 -(IBAction)doAddServer: (id)sender
 {
     // TODO: Sanity checks
-
-    [self disconnect];
+    //[self disconnect];
     
     NSDictionary *newServer = [[NSDictionary alloc] initWithObjectsAndKeys:
                                [serverNickName stringValue], TURAnselServerNickKey,
@@ -327,6 +326,12 @@ NSString * const TURAnselServerPasswordKey = @"password";
        didEndSelector: nil
           contextInfo: nil];
     
+    // Make sure these are cleared.
+    [anselHostURL setStringValue: @""];
+    [username setStringValue: @""];
+    [password setStringValue: @""];
+    [serverNickName setStringValue: @""];
+    
     [serverTable setDelegate: self];
 }