summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2017-10-02 15:08:03 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-02 08:54:03 -0700
commit3e2a86cf80fec49b67f42ddf0c7a8ad4e9a6488a (patch)
tree9e2bfdb2c49f32dc6f0ca6d7592cf1085a55c5c6 /desktop-widgets
parent3a564f412cbf6e8a300bba3ec4bb7941bb3f167b (diff)
downloadsubsurface-3e2a86cf80fec49b67f42ddf0c7a8ad4e9a6488a.tar.gz
[Facebook] More debug calls
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/mainwindow.cpp1
-rw-r--r--desktop-widgets/plugins/facebook/facebookconnectwidget.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index 7b5a0ae40..8a5b21a57 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -362,6 +362,7 @@ void MainWindow::facebookLoggedOut()
void MainWindow::socialNetworkRequestConnect()
{
+ qDebug() << "Requesting connect on the social network";
QAction *action = qobject_cast<QAction*>(sender());
ISocialNetworkIntegration *plugin = qobject_cast<ISocialNetworkIntegration*>(action->data().value<QObject*>());
if (plugin->isConnected())
diff --git a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
index 8da0dd20b..d4c3cab68 100644
--- a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
+++ b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
@@ -70,8 +70,7 @@ bool FacebookManager::loggedIn() {
void FacebookManager::tryLogin(const QUrl& loginResponse)
{
- qCDebug(lcFacebook) << "Response from login call" << loginResponse;
-
+ qCDebug(lcFacebook) << "Current url call" << loginResponse;
QString result = loginResponse.toString();
if (!result.contains("access_token")) {
qCDebug(lcFacebook) << "Response without access token!";
@@ -330,6 +329,7 @@ void FacebookConnectWidget::facebookLoggedIn()
void FacebookConnectWidget::facebookDisconnect()
{
+ qCDebug(lcFacebook) << "Disconnecting from facebook";
// remove the connect/disconnect button
// and instead add the login view
ui->fbWebviewContainer->show();