aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2016-05-16 23:58:34 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2016-05-16 23:58:34 -0700
commitf70043b6cc278f67b08fac6f243b936ba8cc8639 (patch)
tree6ae44c4e67eee9141727fb9662619f58ab125f6b
parent30f5297f7315bd572e12a7bdf417471e1be14b30 (diff)
Fixed error handling
-rwxr-xr-xsrc/core/imap/MCIMAPSession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/imap/MCIMAPSession.cpp b/src/core/imap/MCIMAPSession.cpp
index b48979bc..5cee16b1 100755
--- a/src/core/imap/MCIMAPSession.cpp
+++ b/src/core/imap/MCIMAPSession.cpp
@@ -866,7 +866,7 @@ void IMAPSession::login(ErrorCode * pError)
else if (response->locationOfString(MCSTR("OCF12")) != -1) {
* pError = ErrorYahooUnavailable;
}
- else if (response->locationOfString(MCSTR("Login to your account via a web browser")) != 1) {
+ else if (response->locationOfString(MCSTR("Login to your account via a web browser")) != -1) {
* pError = ErrorOutlookLoginViaWebBrowser;
}
else {