mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 22:23:24 +00:00
[Facebook] Signal that the album is found
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a2734e6aaf
commit
df166247af
2 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue