From 576e2cf97fbdb1e2e17ed5bb921f31158e4d0667 Mon Sep 17 00:00:00 2001 From: Uwe Klotz Date: Fri, 26 Nov 2021 00:23:30 +0100 Subject: [PATCH] WTrackMenu::featureIsEnabled(): Fix unhandled case --- src/widget/wtrackmenu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widget/wtrackmenu.cpp b/src/widget/wtrackmenu.cpp index 1bec5e1fb84..9baacfb36a8 100644 --- a/src/widget/wtrackmenu.cpp +++ b/src/widget/wtrackmenu.cpp @@ -2049,6 +2049,8 @@ bool WTrackMenu::featureIsEnabled(Feature flag) const { return m_pTrackModel->hasCapabilities(TrackModel::Capability::EditMetadata); case Feature::SearchRelated: return m_pLibrary != nullptr; + case Feature::UpdateReplayGain: + return m_pTrackModel->hasCapabilities(TrackModel::Capability::EditMetadata); default: DEBUG_ASSERT(!"unreachable"); return false;