summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--desktop-widgets/plugins/facebook/facebookconnectwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
index b2e5f96f2..4562f48a7 100644
--- a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
+++ b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
@@ -91,7 +91,6 @@ void FacebookManager::tryLogin(const QUrl& loginResponse)
auto fb = SettingsObjectWrapper::instance()->facebook;
fb->setAccessToken(securityToken);
requestUserId();
- emit justLoggedIn(true);
}
void FacebookManager::logout()
@@ -170,8 +169,9 @@ void FacebookManager::userIdReceived()
QNetworkReply *reply = qobject_cast<QNetworkReply*>(sender());
QJsonDocument jsonDoc = QJsonDocument::fromJson(reply->readAll());
QJsonObject obj = jsonDoc.object();
- if (obj.keys().contains("id")){
+ if (obj.keys().contains("id")) {
SettingsObjectWrapper::instance()->facebook->setUserId(obj.value("id").toString());
+ emit justLoggedIn(true);
}
reply->deleteLater();
}