From b21ede24f4a404c58d21b07570dbfe643e761187 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sat, 7 Mar 2009 18:23:31 +0100 Subject: move searching to Menu class, also remember last constraint this improvement also make that list of found items is not cleared if one switches to another screen. it's remebered until the content of screen changes (e.g. item is deleted from playlist) --- src/search_engine.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/search_engine.cpp') diff --git a/src/search_engine.cpp b/src/search_engine.cpp index 6b054522..fc0271c7 100644 --- a/src/search_engine.cpp +++ b/src/search_engine.cpp @@ -67,7 +67,6 @@ void SearchEngine::SwitchTo() if (hasToBeResized) Resize(); - CLEAR_FIND_HISTORY; if (w->Empty()) Prepare(); myScreen = this; @@ -214,7 +213,6 @@ void SearchEngine::EnterPressed() } case 16: { - CLEAR_FIND_HISTORY; itsPattern.Clear(); w->Reset(); Prepare(); -- cgit v1.2.3