Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #4 from nemomobile-packages/vdv-devel
Browse files Browse the repository at this point in the history
[qmf] Register SSO accounts that were initially created with disabled email service
  • Loading branch information
VDVsx committed Jul 25, 2013
2 parents 2279337 + 72b173b commit beb5c28
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions qmf/src/tools/messageserver/servicehandler.cpp
Expand Up @@ -805,10 +805,23 @@ void ServiceHandler::accountsAdded(const QMailAccountIdList &ids)

void ServiceHandler::accountsUpdated(const QMailAccountIdList &ids)
{
#ifdef USE_ACCOUNTS_QT
QMailAccountIdList idList;
foreach (const QMailAccountId &id, ids) {
if (!sourceMap.contains(id) && !sinkMap.contains(id)) {
idList << id;
}
}
if (!idList.isEmpty()) {
registerAccountServices(idList);
}

#else
// Only respond to updates that were generated by other processes
if (QMailStore::instance()->asynchronousEmission()) {
reregisterAccountServices(ids, QMailServiceAction::Status::ErrInternalStateReset, tr("Account updated by other process"));
}
#endif
}

void ServiceHandler::accountsRemoved(const QMailAccountIdList &ids)
Expand Down

0 comments on commit beb5c28

Please sign in to comment.