Update src/dialogs/edittagdialog.cpp

Co-authored-by: Jonas Kvinge <jonas@jkvinge.net>
This commit is contained in:
Célestin Matte 2024-03-12 11:57:46 +01:00 committed by GitHub
parent 2d155294fe
commit 9c158721fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1421,7 +1421,7 @@ void EditTagDialog::FetchTagSongChosen(const Song &original_song, const Song &ne
void EditTagDialog::FetchLyrics() {
if (ui_->song_list->selectionModel()->selectedIndexes().isEmpty()) return;
const Song song = data_[ui_->song_list->selectionModel()->selectedIndexes().first().row()].current_;
const Song &song = data_[ui_->song_list->selectionModel()->selectedIndexes().first().row()].current_;
lyrics_fetcher_->Clear();
ui_->lyrics->setPlainText(tr("loading..."));
lyrics_id_ = static_cast<qint64>(lyrics_fetcher_->Search(song.effective_albumartist(), song.artist(), song.album(), song.title()));