Added Progress indicator handling in error situations
[situare] / src / facebookservice / facebookauthentication.cpp
index d238821..716b054 100644 (file)
@@ -169,7 +169,6 @@ bool FacebookAuthentication::updateCredentials(const QUrl &url)
             clearAccountInformation(true);
             if(m_freshLogin) {
                 emit error(SituareError::LOGIN_FAILED);
-                emit loginFailure();
             } else {
                 m_freshLogin = true;
                 emit error(SituareError::SESSION_EXPIRED);
@@ -179,12 +178,12 @@ bool FacebookAuthentication::updateCredentials(const QUrl &url)
         } else {
             qDebug() << "totally wrong webPage";
             // we should not get a wrong page at this point
-            emit loginFailure();
+            emit error(SituareError::LOGIN_FAILED);
         }
     } else {
         qDebug() << " Loading of page failed invalid URL" << endl;
         // we should not get a wrong page at this point
-        emit loginFailure();
+        emit error(SituareError::LOGIN_FAILED);
     }
     return found;
 }