Permalink
Browse files

Don't try to connect to command line preferences if user doesn't actu…

…ally give a hostname
  • Loading branch information...
1 parent cd15824 commit fa0721f74bfbb6f432d248f30a17a8ff6ed46da5 Dorian Johnson committed Jun 14, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 Source/AppController.m
View
7 Source/AppController.m
@@ -226,10 +226,13 @@ - (void)parseCommandLine
if ([arguments objectForKey:argumentKey])
[newInst setValue:[arguments objectForKey:argumentKey] forKey:instanceKeyPath];
}
-
+
+ if ([[newInst hostName] length] == 0)
+ return;
+
[connectedServers addObject:newInst];
}
-
+
[gui_serverList deselectAll:self];
[self listUpdated];
[self connectInstance:newInst];

1 comment on commit fa0721f

@peelman
Collaborator

Progress! You feeling OK tonight? :)

Please sign in to comment.