aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/plugins/facebook
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/plugins/facebook')
-rw-r--r--desktop-widgets/plugins/facebook/facebookconnectwidget.cpp2
-rw-r--r--desktop-widgets/plugins/facebook/facebookconnectwidget.h1
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);