Commit bacb4e24 authored by Tobias Koenig's avatar Tobias Koenig
Browse files

Do not use 'Synchronize when selecting collection', this

is totally useless for a local resource and causes unnecessary
synchronizations on every access.

svn path=/trunk/KDE/kdepim/runtime/; revision=1196962
parent 35f58f57
......@@ -288,11 +288,6 @@ void MaildirResource::retrieveCollections()
collectionsRetrieved( Collection::List() );
return;
}
CachePolicy cachePolicy;
cachePolicy.setInheritFromParent( false );
cachePolicy.setLocalParts( QStringList() << MessagePart::Envelope << MessagePart::Header );
cachePolicy.setSyncOnDemand( true );
cachePolicy.setCacheTimeout( 1 );
Collection root;
root.setParentCollection( Collection::root() );
......@@ -300,7 +295,7 @@ void MaildirResource::retrieveCollections()
root.setName( name() );
root.setRights( Collection::CanChangeItem | Collection::CanCreateItem | Collection::CanDeleteItem
| Collection::CanCreateCollection );
root.setCachePolicy( cachePolicy );
QStringList mimeTypes;
mimeTypes << Collection::mimeType();
if ( !Settings::self()->topLevelIsContainer() )
......
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