Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #103 from matthewvogt/mer-1174
Browse files Browse the repository at this point in the history
[libcontacts] Adjust fetch hint for non-completing address resolution.  Contributes to MER#1174
  • Loading branch information
matthewvogt committed Aug 18, 2015
2 parents b435183 + 10ef565 commit 342ee5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/seasidecache.cpp
Expand Up @@ -3227,9 +3227,9 @@ void SeasideCache::resolveAddress(ResolveListener *listener, const QString &firs
request->setFilter(localFilter & remoteFilter);
}

// If completion is not required, we need to at least retrieve as much detail
// as the favorites store, so we don't update any favorite with a smaller data subset
request->setFetchHint(requireComplete ? basicFetchHint() : favoriteFetchHint(m_fetchTypes | m_extraFetchTypes));
// If completion is not required, at least include the contact endpoint details (since resolving is obviously being used)
const quint32 detailFetchTypes(SeasideCache::FetchAccountUri | SeasideCache::FetchPhoneNumber | SeasideCache::FetchEmailAddress);
request->setFetchHint(requireComplete ? basicFetchHint() : onlineFetchHint(m_fetchTypes | m_extraFetchTypes | detailFetchTypes));
connect(request, SIGNAL(stateChanged(QContactAbstractRequest::State)),
this, SLOT(addressRequestStateChanged(QContactAbstractRequest::State)));
m_resolveAddresses[request] = data;
Expand Down

0 comments on commit 342ee5e

Please sign in to comment.