Add command to clear filter.

This commit is contained in:
Marc Jessome
2012-04-10 20:39:10 -04:00
committed by Andrzej Rybczak
parent 7b90daa690
commit 10f5ec1e78
5 changed files with 27 additions and 0 deletions

View File

@@ -2028,6 +2028,24 @@ int main(int argc, char **argv)
RedrawHeader = 1;
}
}
else if (Keypressed(input, Key.DisableFilter))
{
List *mList = myScreen->GetList();
if (!mList)
continue;
mList->ApplyFilter("");
ShowMessage("Filtering disabled");
if (myScreen == myPlaylist)
{
myPlaylist->EnableHighlighting();
Playlist::ReloadTotalLength = 1;
RedrawHeader = 1;
}
}
else if (Keypressed(input, Key.FindForward) || Keypressed(input, Key.FindBackward))
{
List *mList = myScreen->GetList();
@@ -2356,6 +2374,7 @@ int main(int argc, char **argv)
|| Keypressed(input, Key.Home)
|| Keypressed(input, Key.End)
|| Keypressed(input, Key.ApplyFilter)
|| Keypressed(input, Key.DisableFilter)
|| Keypressed(input, Key.FindForward)
|| Keypressed(input, Key.FindBackward)
|| Keypressed(input, Key.NextFoundPosition)