actions: split ShowSearchEngine into ShowSearchEngine and ResetSearchEngine

This commit is contained in:
Andrzej Rybczak
2012-09-15 23:20:18 +02:00
parent 3d2e5adae8
commit b4ab065b2d
7 changed files with 51 additions and 29 deletions

View File

@@ -126,16 +126,11 @@ void SearchEngine::resize()
void SearchEngine::switchTo()
{
if (Global::myScreen != this)
{
SwitchTo::execute(this);
if (w.empty())
Prepare();
markSongsInPlaylist(getProxySongList());
drawHeader();
}
else
reset();
SwitchTo::execute(this);
if (w.empty())
Prepare();
markSongsInPlaylist(getProxySongList());
drawHeader();
}
std::wstring SearchEngine::title()