From df166247af6ebdc6a77e9266bd8922bac786a2aa Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 2 Oct 2017 14:20:37 +0200 Subject: [Facebook] Signal that the album is found Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- desktop-widgets/plugins/facebook/facebookconnectwidget.cpp | 2 ++ desktop-widgets/plugins/facebook/facebookconnectwidget.h | 1 + 2 files changed, 3 insertions(+) (limited to 'desktop-widgets') diff --git a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp index 721179db6..27807cadc 100644 --- a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp +++ b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp @@ -110,6 +110,7 @@ void FacebookManager::albumListReceived() QJsonObject obj = v.toObject(); if (obj.value("name").toString() == albumName) { fb->setAlbumId(obj.value("id").toString()); + emit albumIdReceived(fb->albumId()); return; } } @@ -142,6 +143,7 @@ void FacebookManager::facebookAlbumCreated() if (album.contains("id")) { auto fb = SettingsObjectWrapper::instance()->facebook; fb->setAlbumId(album.value("id").toString()); + emit albumIdReceived(fb->albumId()); return; } } diff --git a/desktop-widgets/plugins/facebook/facebookconnectwidget.h b/desktop-widgets/plugins/facebook/facebookconnectwidget.h index adc84dda4..c5458bdd0 100644 --- a/desktop-widgets/plugins/facebook/facebookconnectwidget.h +++ b/desktop-widgets/plugins/facebook/facebookconnectwidget.h @@ -40,6 +40,7 @@ public: signals: void justLoggedIn(bool triggererd); void justLoggedOut(bool triggered); + void albumIdReceived(const QString& albumId); public slots: void tryLogin(const QUrl& loginResponse); -- cgit v1.2.3-70-g09d2