Revision 311d1cde trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs
b/trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs | ||
---|---|---|
835 | 835 |
account.SiteUri, Uri.EscapeDataString(account.Token), |
836 | 836 |
Uri.EscapeDataString(account.UserName)); |
837 | 837 |
|
838 |
if (Accounts.All(item => item.UserName != account.UserName))
|
|
838 |
if (!Accounts.Any(item => item.UserName == account.UserName && item.SiteUri == account.SiteUri))
|
|
839 | 839 |
Accounts.TryAdd(account); |
840 | 840 |
|
841 | 841 |
} |
Also available in: Unified diff