Skip to content

Commit

Permalink
WTrackMenu::featureIsEnabled(): Fix unhandled case
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Nov 25, 2021
1 parent 0347143 commit 576e2cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/widget/wtrackmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 576e2cf

Please sign in to comment.