clear filters before jumping to media library

fix for issue #3300.
This commit is contained in:
Andrzej Rybczak
2011-08-01 00:43:40 +02:00
parent 0c4c27ac6c
commit 3f064df95d

View File

@@ -633,6 +633,7 @@ void MediaLibrary::LocateSong(const MPD::Song &s)
if (!hasTwoColumns) if (!hasTwoColumns)
{ {
Artists->ApplyFilter("");
if (Artists->Empty()) if (Artists->Empty())
Update(); Update();
if (primary_tag != Artists->Current()) if (primary_tag != Artists->Current())
@@ -650,6 +651,7 @@ void MediaLibrary::LocateSong(const MPD::Song &s)
} }
} }
Albums->ApplyFilter("");
if (Albums->Empty()) if (Albums->Empty())
Update(); Update();
@@ -672,6 +674,7 @@ void MediaLibrary::LocateSong(const MPD::Song &s)
} }
} }
Songs->ApplyFilter("");
if (Songs->Empty()) if (Songs->Empty())
Update(); Update();