Fix compile with optional components disabled

This commit is contained in:
Jonas Kvinge
2019-10-03 23:29:52 +02:00
parent f449808ba3
commit 4402a56e94
16 changed files with 67 additions and 41 deletions

View File

@@ -841,9 +841,10 @@ void EditTagDialog::ResetPlayCounts() {
UpdateStatisticsTab(*song);
}
#if defined(HAVE_GSTREAMER) && defined(HAVE_CHROMAPRINT)
void EditTagDialog::FetchTag() {
#if defined(HAVE_GSTREAMER) && defined(HAVE_CHROMAPRINT)
const QModelIndexList sel = ui_->song_list->selectionModel()->selectedIndexes();
SongList songs;
@@ -864,10 +865,14 @@ void EditTagDialog::FetchTag() {
results_dialog_->show();
#endif
}
void EditTagDialog::FetchTagSongChosen(const Song &original_song, const Song &new_metadata) {
#if defined(HAVE_GSTREAMER) && defined(HAVE_CHROMAPRINT)
const QString filename = original_song.url().toLocalFile();
// Find the song with this filename
@@ -893,9 +898,13 @@ void EditTagDialog::FetchTagSongChosen(const Song &original_song, const Song &ne
UpdateUI(sel);
}
}
#else
Q_UNUSED(original_song)
Q_UNUSED(new_metadata)
#endif
}
void EditTagDialog::SongSaveComplete(TagReaderReply *reply, const QString &filename, const Song &song) {
pending_--;