From a4f692c788fd6b823f688d820922c5082d6b9bcc Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Thu, 6 Aug 2020 18:37:17 +0200 Subject: [PATCH] Only show playlist add file(s) to transcoder when songs are selected --- src/core/mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/mainwindow.cpp b/src/core/mainwindow.cpp index dc6f2ee9b..3c9030e96 100644 --- a/src/core/mainwindow.cpp +++ b/src/core/mainwindow.cpp @@ -1688,6 +1688,11 @@ void MainWindow::PlaylistRightClick(const QPoint &global_pos, const QModelIndex ui_->action_rescan_songs->setEnabled(editable); ui_->action_rescan_songs->setVisible(editable); +#ifdef HAVE_GSTREAMER + ui_->action_add_files_to_transcoder->setEnabled(editable); + ui_->action_add_files_to_transcoder->setVisible(editable); +#endif + // the rest of the read / write actions work only when there are no CUEs involved if (cue_selected) editable = 0;