summaryrefslogtreecommitdiff
path: root/src/search_engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/search_engine.cpp')
-rw-r--r--src/search_engine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/search_engine.cpp b/src/search_engine.cpp
index a413f3f8..ed41a117 100644
--- a/src/search_engine.cpp
+++ b/src/search_engine.cpp
@@ -52,6 +52,7 @@ void SearchEngine::Init()
w->SetSelectPrefix(&Config.selected_item_prefix);
w->SetSelectSuffix(&Config.selected_item_suffix);
w->SetGetStringFunction(SearchEngineOptionToString);
+ isInitialized = 1;
}
void SearchEngine::Resize()
@@ -65,6 +66,9 @@ void SearchEngine::SwitchTo()
if (myScreen == this)
return;
+ if (!isInitialized)
+ Init();
+
if (hasToBeResized)
Resize();