diff options
-rw-r--r-- | src/opensearch/opensearchmanager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/opensearch/opensearchmanager.cpp b/src/opensearch/opensearchmanager.cpp index 3b960da7..916ac80e 100644 --- a/src/opensearch/opensearchmanager.cpp +++ b/src/opensearch/opensearchmanager.cpp @@ -180,7 +180,11 @@ void OpenSearchManager::jobFinished(KJob *job) if (m_state == REQ_SUGGESTION) { - const ResponseList suggestionsList = m_activeEngine->parseSuggestion(_typedText, m_jobData); + ResponseList suggestionsList; + if (isSuggestionAvailable()) + { + suggestionsList = m_activeEngine->parseSuggestion(_typedText, m_jobData); + } emit suggestionsReceived(_typedText, suggestionsList); idleJob(); return; |