clear filters when empty string is passed to applyFilter
boost::regex doesn't like empty strings in literal mode and throws exceptions.
This commit is contained in:
@@ -251,6 +251,12 @@ std::string Browser::currentFilter()
|
||||
|
||||
void Browser::applyFilter(const std::string &filter)
|
||||
{
|
||||
if (filter.empty())
|
||||
{
|
||||
w.clearFilter();
|
||||
w.clearFilterResults();
|
||||
return;
|
||||
}
|
||||
try
|
||||
{
|
||||
w.showAll();
|
||||
|
||||
Reference in New Issue
Block a user