Make the logout button on the spotify settings page actually work

This commit is contained in:
David Sansome 2011-10-30 18:52:54 +00:00
parent 08e09ce5dd
commit a8dfa31818
2 changed files with 6 additions and 0 deletions

View File

@ -639,4 +639,8 @@ void SpotifyService::Logout() {
blob_process_ = NULL; blob_process_ = NULL;
login_state_ = LoginState_OtherError; login_state_ = LoginState_OtherError;
QSettings s;
s.beginGroup(kSettingsGroup);
s.setValue("login_state", login_state_);
} }

View File

@ -152,4 +152,6 @@ void SpotifySettingsPage::UpdateLoginState() {
void SpotifySettingsPage::Logout() { void SpotifySettingsPage::Logout() {
service_->Logout(); service_->Logout();
UpdateLoginState(); UpdateLoginState();
ui_->username->clear();
} }