aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2016-06-06 00:31:26 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2016-06-06 00:32:25 -0700
commit17749227fdc5819f8e585a37dcf8b5b9197147da (patch)
tree8d8f60b722b3823fd33427eb074bb50f58f8499d
parentc8e916373a94454346fc1fc7ca1869bbde3d7961 (diff)
Fixed issue with validator
-rw-r--r--src/core/provider/MCAccountValidator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/provider/MCAccountValidator.cpp b/src/core/provider/MCAccountValidator.cpp
index 9fbeabc4..a13dfd99 100644
--- a/src/core/provider/MCAccountValidator.cpp
+++ b/src/core/provider/MCAccountValidator.cpp
@@ -228,19 +228,19 @@ void AccountValidator::resolveMXDone()
void AccountValidator::setupServices()
{
- if (mImapServices == NULL) {
+ if (mImapServices->count() == 0 && mProvider->imapServices() != NULL) {
MC_SAFE_RELEASE(mImapServices);
mImapServices = mProvider->imapServices();
MC_SAFE_RETAIN(mImapServices);
}
- if (mPopServices == NULL) {
+ if (mPopServices->count() == 0 && mProvider->popServices() != NULL) {
MC_SAFE_RELEASE(mPopServices);
mPopServices = mProvider->popServices();
MC_SAFE_RETAIN(mPopServices);
}
- if (mSmtpServices == NULL) {
+ if (mSmtpServices->count() == 0 && mProvider->smtpServices() != NULL) {
MC_SAFE_RELEASE(mSmtpServices);
mSmtpServices = mProvider->smtpServices();
MC_SAFE_RETAIN(mSmtpServices);