Fix compile without gstreamer

This commit is contained in:
Jonas Kvinge
2018-12-20 18:11:22 +01:00
parent ceb0f5ead4
commit 517285085a
2 changed files with 5 additions and 1 deletions

View File

@@ -405,7 +405,9 @@ void ContextAlbumsView::contextMenuEvent(QContextMenuEvent *e) {
// TODO: check if custom plugin actions should be enabled / visible
const int songs_selected = regular_elements;
#ifdef HAVE_GSTREAMER
const bool regular_elements_only = songs_selected == regular_elements && regular_elements > 0;
#endif
// in all modes
load_->setEnabled(songs_selected);