aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2017-10-02 14:20:37 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-02 08:53:59 -0700
commitdf166247af6ebdc6a77e9266bd8922bac786a2aa (patch)
tree32dd9f9c97be276f52a3dd7b7fe67eb9b3cf3ae5 /desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
parenta2734e6aaf4c7e10624342a69f127789ea22b5ab (diff)
downloadsubsurface-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/plugins/facebook/facebookconnectwidget.cpp')
-rw-r--r--desktop-widgets/plugins/facebook/facebookconnectwidget.cpp2
1 files changed, 2 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;
}
}