mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +00:00
Make sure that the source implements groups support prior than querying it for groups.
Monotone-Parent: e1d0bc18ecaf333b66126f3d3f7d8dfdb0580d70 Monotone-Revision: 8e6238fb5afca88582d8e5b9645e8f690b18ddd8 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2009-10-07T20:46:16 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -128,9 +128,12 @@
|
||||
for (i = 0; i < [allSources count]; i++)
|
||||
{
|
||||
source = [[SOGoUserManager sharedUserManager] sourceWithID: [allSources objectAtIndex: i]];
|
||||
entry = [source performSelector: theSelector
|
||||
withObject: theValue];
|
||||
|
||||
// Our different sources might not all implements groups support
|
||||
if ([source respondsToSelector: theSelector])
|
||||
entry = [source performSelector: theSelector
|
||||
withObject: theValue];
|
||||
|
||||
if (entry)
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user