jump from browser to playlist editor with GoToContainingDir key

This commit is contained in:
Frank Blendinger
2010-03-04 15:13:11 +01:00
parent 6b5ed187a1
commit d139f2d8af
4 changed files with 28 additions and 3 deletions

View File

@@ -289,6 +289,20 @@ void PlaylistEditor::ApplyFilter(const std::string &s)
GetList()->ApplyFilter(s, 0, REG_ICASE | Config.regex_type);
}
void PlaylistEditor::JumpTo(const std::string &s)
{
SwitchTo();
for (size_t i = 0; i < Playlists->Size(); ++i)
{
if (s == (*Playlists)[i])
{
Playlists->Highlight(i);
Content->Clear();
break;
}
}
}
List *PlaylistEditor::GetList()
{
if (w == Playlists)