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