Permalink
Browse files

When adding a contact, if no account selected, assume the first account

  • Loading branch information...
1 parent 4391dcb commit 20a138398383f89f9fc390308a86bd67c2a25352 @benlangfeld committed Nov 8, 2010
Showing with 1 addition and 4 deletions.
  1. +1 −4 Controllers/AccountsController.j
@@ -317,10 +317,7 @@ var SharedController = nil;
else if ([selected isKindOfClass:[Account class]])
account = selected;
else
- {
- CPLog.error("Must select an account to add a contact to!");
- return;
- }
+ account = [accounts objectAtIndex:0];
var controller = [[AddContactController alloc] initWithAccount:account];
[controller showWindow:aSender];

0 comments on commit 20a1383

Please sign in to comment.