diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-09-23 21:52:45 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-09-23 21:52:45 -0700 |
commit | 4491af22e19513f0c31662cfa70bf899ebdb3a15 (patch) | |
tree | 84b06bc590bb6da64343d3fb462de92780841ea7 /src | |
parent | 0d4bd05ca9d4d638065fd0bd174ce49db66a06ce (diff) |
Set provider in account validator
Diffstat (limited to 'src')
-rw-r--r-- | src/core/provider/MCAccountValidator.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/provider/MCAccountValidator.cpp b/src/core/provider/MCAccountValidator.cpp index de98b14f..59538c72 100644 --- a/src/core/provider/MCAccountValidator.cpp +++ b/src/core/provider/MCAccountValidator.cpp @@ -108,6 +108,9 @@ void AccountValidator::start() MC_SAFE_RELEASE(mProvider); mProvider = MailProvidersManager::sharedManager()->providerForEmail(mEmail); + if (mProvider != NULL) { + MC_SAFE_REPLACE_COPY(String, mIdentifier, mProvider->identifier()); + } MC_SAFE_RETAIN(mProvider); if (mProvider == NULL) { @@ -181,6 +184,9 @@ void AccountValidator::resolveMXDone() MailProvider * provider = MailProvidersManager::sharedManager()->providerForMX(mxRecord); if (provider != NULL){ MC_SAFE_REPLACE_RETAIN(MailProvider, mProvider, provider); + if (mProvider != NULL) { + MC_SAFE_REPLACE_COPY(String, mIdentifier, mProvider->identifier()); + } break; } } |