mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
Facebook integration: whitespace cleanup
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c39fbea0ee
commit
7e98016832
1 changed files with 8 additions and 8 deletions
|
@ -78,18 +78,18 @@ void FacebookManager::tryLogin(const QUrl& loginResponse)
|
|||
int to = result.indexOf("&expires_in");
|
||||
QString securityToken = result.mid(from, to-from);
|
||||
|
||||
auto fb = SettingsObjectWrapper::instance()->facebook;
|
||||
fb->setAccessToken(securityToken);
|
||||
auto fb = SettingsObjectWrapper::instance()->facebook;
|
||||
fb->setAccessToken(securityToken);
|
||||
requestUserId();
|
||||
emit justLoggedIn(true);
|
||||
}
|
||||
|
||||
void FacebookManager::logout()
|
||||
{
|
||||
auto fb = SettingsObjectWrapper::instance()->facebook;
|
||||
fb->setAccessToken(QString());
|
||||
fb->setUserId(QString());
|
||||
fb->setAlbumId(QString());
|
||||
auto fb = SettingsObjectWrapper::instance()->facebook;
|
||||
fb->setAccessToken(QString());
|
||||
fb->setUserId(QString());
|
||||
fb->setAlbumId(QString());
|
||||
emit justLoggedOut(true);
|
||||
}
|
||||
|
||||
|
@ -105,7 +105,7 @@ void FacebookManager::requestAlbumId()
|
|||
|
||||
QJsonDocument albumsDoc = QJsonDocument::fromJson(reply->readAll());
|
||||
QJsonArray albumObj = albumsDoc.object().value("data").toArray();
|
||||
auto fb = SettingsObjectWrapper::instance()->facebook;
|
||||
auto fb = SettingsObjectWrapper::instance()->facebook;
|
||||
|
||||
foreach(const QJsonValue &v, albumObj){
|
||||
QJsonObject obj = v.toObject();
|
||||
|
@ -129,7 +129,7 @@ void FacebookManager::requestAlbumId()
|
|||
albumsDoc = QJsonDocument::fromJson(reply->readAll());
|
||||
QJsonObject album = albumsDoc.object();
|
||||
if (album.contains("id")) {
|
||||
fb->setAlbumId(album.value("id").toString());
|
||||
fb->setAlbumId(album.value("id").toString());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue