~ubuntu-branches/ubuntu/vivid/akonadi/vivid

« back to all changes in this revision

Viewing changes to server/src/handler/fetchhelper.cpp

  • Committer: Package Import Robot
  • Author(s): Harald Sitter
  • Date: 2014-04-08 10:30:38 UTC
  • mfrom: (1.1.51)
  • Revision ID: package-import@ubuntu.com-20140408103038-nj5ew1gbnpxzpp2e
Tags: 1.12.1-0ubuntu1
New upstream bugfix release

Show diffs side-by-side

added added

removed removed

Lines of Context:
284
284
    retriever.setScope( mScope );
285
285
    retriever.setRetrieveParts( mFetchScope.requestedPayloads() );
286
286
    retriever.setRetrieveFullPayload( mFetchScope.fullPayload() );
 
287
    retriever.setChangedSince( mFetchScope.changedSince() );
287
288
    if ( !retriever.exec() && !mFetchScope.ignoreErrors() ) { // There we go, retrieve the missing parts from the resource.
288
289
      if ( mConnection->resourceContext().isValid() ) {
289
290
        throw HandlerException( QString::fromLatin1( "Unable to fetch item from backend (collection %1, resource %2) : %3" )
303
304
  // error if query did not find any item and scope is not listing items but
304
305
  // a request for a specific item
305
306
  if ( !itemQuery.isValid() ) {
 
307
    if ( mFetchScope.ignoreErrors() ) {
 
308
      return true;
 
309
    }
306
310
    switch ( mScope.scope() ) {
307
311
    case Scope::Uid: // fall through
308
312
    case Scope::Rid: // fall through