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