Save last.fm options without login. Fixes issue #2023. Thanks to

samir.benmendil@gmail.com
This commit is contained in:
Andrea Decorte 2011-06-27 18:15:55 +00:00
parent 7773e98ebf
commit 10af1e6627
2 changed files with 9 additions and 1 deletions

View File

@ -35,6 +35,7 @@ class LastFMConfig : public QWidget {
public slots:
void Validate();
void Load();
void Save();
signals:
void ValidationComplete(bool success);
@ -52,7 +53,6 @@ class LastFMConfig : public QWidget {
bool waiting_for_auth_;
void RefreshControls(bool authenticated);
void Save();
};
#endif // LASTFMCONFIG_H

View File

@ -472,6 +472,14 @@ void SettingsDialog::accept() {
streams_->SaveStreams();
// Save settings different from login data
#ifdef HAVE_LIBLASTFM
lastfm_config_->Save();
#endif
#ifdef HAVE_REMOTE
remote_config_->Save();
#endif
QDialog::accept();
NetworkProxyFactory::Instance()->ReloadSettings();