summaryrefslogtreecommitdiff
path: root/src/opensearch/opensearchmanager.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-12-29 11:01:07 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-12-29 11:01:07 +0100
commit15bdd65c780e83df4851e6b0b4287eab104794ca (patch)
treea4d336f5482133edcba554b931440495b1f45578 /src/opensearch/opensearchmanager.cpp
parentGet sure tabbar is well shown (and hided) during fullscreen navigation (diff)
downloadrekonq-15bdd65c780e83df4851e6b0b4287eab104794ca.tar.xz
Revert "Revert "Fix OpenSearchEngine crash call""
This reverts commit 18cb05938a8a1621c267a0c3a3efc03382061681. Sorry, merged wrong branch. Reverted a working commit...
Diffstat (limited to 'src/opensearch/opensearchmanager.cpp')
-rw-r--r--src/opensearch/opensearchmanager.cpp6
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;