new feature: locate song in tag editor

This commit is contained in:
Andrzej Rybczak
2010-05-14 01:14:45 +02:00
parent b6e6ab1f61
commit e978cfcc8b
6 changed files with 73 additions and 0 deletions

View File

@@ -1614,6 +1614,14 @@ int main(int argc, char *argv[])
if (s)
myLibrary->LocateSong(*s);
}
# ifdef HAVE_TAGLIB_H
else if (Keypressed(input, Key.GoToTagEditor))
{
CHECK_MPD_MUSIC_DIR;
if (Song *s = myScreen->CurrentSong())
myTagEditor->LocateSong(*s);
}
# endif // HAVE_TAGLIB_H
else if (Keypressed(input, Key.GoToPosition))
{
if (!Mpd.GetTotalTime())