make NCurses::Menu::Clear() clear used filter
This commit is contained in:
@@ -571,6 +571,7 @@ template <typename T> void NCurses::Menu<T>::Clear(bool clrscr)
|
||||
delete *it;
|
||||
itsOptions.clear();
|
||||
itsFound.clear();
|
||||
itsFilter.clear();
|
||||
ClearFiltered();
|
||||
itsOptionsPtr = &itsOptions;
|
||||
if (clrscr)
|
||||
|
||||
@@ -70,10 +70,7 @@ void StatusbarApplyFilterImmediately(const std::wstring &ws)
|
||||
{
|
||||
static std::wstring cmp;
|
||||
if (cmp != ws)
|
||||
{
|
||||
myScreen->ApplyFilter(ToString(ws));
|
||||
cmp = ws;
|
||||
}
|
||||
myScreen->ApplyFilter(ToString((cmp = ws)));
|
||||
myScreen->RefreshWindow();
|
||||
TraceMpdStatus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user