summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2009-08-09 12:52:00 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2009-08-09 12:52:00 +0200
commitf5fc2dbe8a1f58a32dff89a8f2712721a50aae99 (patch)
tree632211bfafdd4a4d6e920104d1c499e8367f3a57 /src
parentc9e08df9a5d2fab2161c32de5e348f17f7b13ecf (diff)
fix displaying messages in search engine
Diffstat (limited to 'src')
-rw-r--r--src/search_engine.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/search_engine.cpp b/src/search_engine.cpp
index 67157d97..2313e985 100644
--- a/src/search_engine.cpp
+++ b/src/search_engine.cpp
@@ -91,10 +91,10 @@ std::string SearchEngine::Title()
void SearchEngine::EnterPressed()
{
size_t option = w->Choice();
- LockStatusbar();
-
if (option < SearchButton)
w->Current().first->Clear();
+ if (option < 15)
+ LockStatusbar();
switch (option)
{
@@ -252,7 +252,8 @@ void SearchEngine::EnterPressed()
break;
}
}
- UnlockStatusbar();
+ if (option < 15)
+ UnlockStatusbar();
}
void SearchEngine::SpacePressed()