1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-23 08:20:01 +01:00

Make Dropbox logout work.

This commit is contained in:
John Maguire 2015-09-25 16:25:42 +01:00
parent 415e6dc5e8
commit 06e5b6750c
2 changed files with 7 additions and 0 deletions

View File

@ -171,6 +171,10 @@ void DropboxService::RequestFileListFinished(QNetworkReply* reply) {
}
void DropboxService::LongPollDelta() {
if (!has_credentials()) {
// Might have been signed out by the user.
return;
}
QSettings s;
s.beginGroup(kSettingsGroup);

View File

@ -90,6 +90,9 @@ bool DropboxSettingsPage::eventFilter(QObject* object, QEvent* event) {
void DropboxSettingsPage::LogoutClicked() {
ui_->login_state->SetLoggedIn(LoginStateWidget::LoggedOut);
QSettings s;
s.beginGroup(DropboxService::kSettingsGroup);
s.remove("access_token2");
}
void DropboxSettingsPage::Connected() {