Commit a565d78c authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Use full name of system groups to avoid collision with user groups

When users create groups "Friends" or "Family" manually, the
collection name would conflict with the system group names,
so we use system group full name ("System Group: Friends" etc)
to avoid the conflict.

Thanks to Lindsay for tracking down the issue.

BUG: 316798
parent eb426ee1
......@@ -383,7 +383,7 @@ void ContactsResource::slotCollectionsRetrieved( KGAPI2::Job *job )
Collection collection;
collection.setContentMimeTypes( QStringList() << KABC::Addressee::mimeType() );
collection.setName( realName );
collection.setName( group->title() );
collection.setParent( m_rootCollection );
collection.setRights( Collection::CanLinkItem |
Collection::CanUnlinkItem |
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment