diff --git a/src/actions.cpp b/src/actions.cpp index 32e5f4ee..44a86001 100644 --- a/src/actions.cpp +++ b/src/actions.cpp @@ -1973,16 +1973,6 @@ void ToggleFindMode::Run() Statusbar::msg("Search mode: %s", Config.wrapped_search ? "Wrapped" : "Normal"); } -bool ToggleReplayGainMode::canBeRun() const -{ - if (Mpd.Version() < 16) - { - Statusbar::msg("Replay gain mode control is supported in MPD >= 0.16.0"); - return false; - } - return true; -} - void ToggleReplayGainMode::Run() { using Global::wFooter; diff --git a/src/actions.h b/src/actions.h index 2e485105..d64d458a 100644 --- a/src/actions.h +++ b/src/actions.h @@ -824,7 +824,6 @@ struct ToggleReplayGainMode : public Action ToggleReplayGainMode() : Action(aToggleReplayGainMode, "toggle_replay_gain_mode") { } protected: - virtual bool canBeRun() const; virtual void Run(); }; diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp index ac3baedd..f4578de4 100644 --- a/src/ncmpcpp.cpp +++ b/src/ncmpcpp.cpp @@ -124,9 +124,9 @@ int main(int argc, char **argv) if (!Action::ConnectToMPD()) exit(1); - if (Mpd.Version() < 14) + if (Mpd.Version() < 16) { - std::cout << "MPD < 0.14 is not supported, please upgrade.\n"; + std::cout << "MPD < 0.16.0 is not supported, please upgrade.\n"; exit(1); } diff --git a/src/tag_editor.cpp b/src/tag_editor.cpp index bd655f25..7f00d57f 100644 --- a/src/tag_editor.cpp +++ b/src/tag_editor.cpp @@ -1066,10 +1066,7 @@ bool TagEditor::WriteTags(MPD::MutableSong &s) WriteID3v2("TCOM", tag, list); // composer GetTagList(list, s, &MPD::Song::getPerformer); - // in >=mpd-0.16 treating TOPE frame as performer tag - // was dropped in favor of TPE3/TPE4 frames, so we have - // to write frame accurate to used mpd version - WriteID3v2(Mpd.Version() < 16 ? "TOPE" : "TPE3", tag, list); // performer + WriteID3v2("TPE3", tag, list); // performer } else if (TagLib::Ogg::Vorbis::File *ogg_file = dynamic_cast(f.file())) {