Save last.fm options without login. Fixes issue #2023. Thanks to
samir.benmendil@gmail.com
This commit is contained in:
parent
7773e98ebf
commit
10af1e6627
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue