Fix compile with optional components disabled
This commit is contained in:
@@ -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_--;
|
||||
|
||||
Reference in New Issue
Block a user