disable 'locate song in media library' function for mpd < 0.14.*

This commit is contained in:
Andrzej Rybczak
2010-04-07 12:36:29 +02:00
parent 1b8ace06f5
commit 097632b088

View File

@@ -557,6 +557,14 @@ void MediaLibrary::PrevColumn()
void MediaLibrary::LocateSong(const MPD::Song &s)
{
if (Mpd.Version() < 14)
{
// <mpd-0.14.* has no ability to search for empty tags, which sometimes
// leaves albums column empty. since this function relies on this column
// being non-empty, it has to be disabled for these versions.
ShowMessage("Your MPD version is too old to handle this function properly, please upgrade.");
return;
}
std::string primary_tag;
switch (Config.media_lib_primary_tag)
{