mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
[Facebook] More debug calls
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3a564f412c
commit
3e2a86cf80
2 changed files with 3 additions and 2 deletions
|
@ -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())
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue