clear search results if empty string is passed to FindForward/Backward
This commit is contained in:
@@ -596,6 +596,16 @@ bool MediaLibrary::allowsSearching()
|
||||
|
||||
bool MediaLibrary::search(const std::string &constraint)
|
||||
{
|
||||
if (constraint.empty())
|
||||
{
|
||||
if (isActiveWindow(Tags))
|
||||
Tags.clearSearchResults();
|
||||
else if (isActiveWindow(Albums))
|
||||
Albums.clearSearchResults();
|
||||
else if (isActiveWindow(Songs))
|
||||
Songs.clearSearchResults();
|
||||
return false;
|
||||
}
|
||||
try
|
||||
{
|
||||
bool result = false;
|
||||
|
||||
Reference in New Issue
Block a user