diff --git a/src/songinfo/songinfobase.cpp b/src/songinfo/songinfobase.cpp index 3b36e7649..b243e97a9 100644 --- a/src/songinfo/songinfobase.cpp +++ b/src/songinfo/songinfobase.cpp @@ -214,10 +214,6 @@ void SongInfoBase::ReloadSettings() { QMetaObject::invokeMethod(contents, "ReloadSettings"); } - - QSettings s; - s.beginGroup(kSettingsGroup); - fetcher_->set_timeout(s.value("timeout", SongInfoFetcher::kDefaultTimeoutDuration).toInt()); } void SongInfoBase::ConnectWidget(QWidget* widget) { diff --git a/src/songinfo/songinfofetcher.h b/src/songinfo/songinfofetcher.h index 987716a4e..e843a5908 100644 --- a/src/songinfo/songinfofetcher.h +++ b/src/songinfo/songinfofetcher.h @@ -40,9 +40,7 @@ public: QList info_; }; - static const int kDefaultTimeoutDuration = 2500; // msec - - void set_timeout(int msec) { timeout_duration_ = msec; } + static const int kDefaultTimeoutDuration = 25000; // msec void AddProvider(SongInfoProvider* provider); int FetchInfo(const Song& metadata); diff --git a/src/songinfo/songinfosettingspage.cpp b/src/songinfo/songinfosettingspage.cpp index 7a3ab93dc..643afa12a 100644 --- a/src/songinfo/songinfosettingspage.cpp +++ b/src/songinfo/songinfosettingspage.cpp @@ -59,8 +59,6 @@ void SongInfoSettingsPage::Load() { s.beginGroup(SongInfoTextView::kSettingsGroup); ui_->song_info_font_size->setValue( s.value("font_size", SongInfoTextView::kDefaultFontSize).toReal()); - ui_->song_info_timeout->setValue( - s.value("timeout", SongInfoFetcher::kDefaultTimeoutDuration).toInt()); s.endGroup(); QList providers = dialog()->song_info_view()->lyric_providers(); @@ -80,7 +78,6 @@ void SongInfoSettingsPage::Save() { s.beginGroup(SongInfoTextView::kSettingsGroup); s.setValue("font_size", ui_->song_info_font_preview->font().pointSizeF()); - s.setValue("timeout", ui_->song_info_timeout->value()); s.endGroup(); s.beginGroup(SongInfoView::kSettingsGroup); diff --git a/src/songinfo/songinfosettingspage.ui b/src/songinfo/songinfosettingspage.ui index b2d82de1e..4f313b208 100644 --- a/src/songinfo/songinfosettingspage.ui +++ b/src/songinfo/songinfosettingspage.ui @@ -75,38 +75,6 @@ - - - - Network - - - - - - Timeout - - - - - - - ms - - - 1000 - - - 60000 - - - 2500 - - - - - -