diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2017-10-02 14:20:37 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-10-02 08:53:59 -0700 |
commit | df166247af6ebdc6a77e9266bd8922bac786a2aa (patch) | |
tree | 32dd9f9c97be276f52a3dd7b7fe67eb9b3cf3ae5 /desktop-widgets | |
parent | a2734e6aaf4c7e10624342a69f127789ea22b5ab (diff) | |
download | subsurface-df166247af6ebdc6a77e9266bd8922bac786a2aa.tar.gz |
[Facebook] Signal that the album is found
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/plugins/facebook/facebookconnectwidget.cpp | 2 | ||||
-rw-r--r-- | desktop-widgets/plugins/facebook/facebookconnectwidget.h | 1 |
2 files changed, 3 insertions, 0 deletions
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); |