Commit 3eb827f7 authored by Grégory Oestreicher's avatar Grégory Oestreicher
Browse files

Prevent duplicates in mCollectionsWithTemporaryError

BUG: 313670
BUG: 314206
FIXED-IN: 4.10.2
parent ac8d8fca
......@@ -469,10 +469,13 @@ void DavGroupwareResource::onRetrieveCollectionsFinished( KJob *job )
KUrl url = davUrl.url();
url.setUser( QString() );
QStringList urls = Settings::self()->mappedCollections( davUrl.protocol(), url.prettyUrl() );
mCollectionsWithTemporaryError << urls;
foreach ( const QString &url, urls ) {
kWarning() << "Temporary error with collection" << url;
if ( !mCollectionsWithTemporaryError.contains( url ) )
mCollectionsWithTemporaryError << url;
Akonadi::Collection collection;
collection.setParentCollection( mDavCollectionRoot );
collection.setRemoteId( url );
......
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