diff options
| author | Andrea Diamantini <adjam7@gmail.com> | 2011-12-23 00:09:30 +0100 | 
|---|---|---|
| committer | Andrea Diamantini <adjam7@gmail.com> | 2011-12-23 00:13:11 +0100 | 
| commit | 956f75478e7a7c01971c9ef84305d97af8a2e21f (patch) | |
| tree | c29df3f09eab747bf30db5f07363d6d56a0bab60 /src | |
| parent | fixuifiles (diff) | |
| download | rekonq-956f75478e7a7c01971c9ef84305d97af8a2e21f.tar.xz | |
Fix OpenSearchEngine crash call
Don't ask me why, as I'm not code author and it seems a bit complicated
for the evening, but following backtrace (bug 289583, Thread 1, #12)
it seems there is a call to a non extant opensearchengine instance.
This check prevents this crashy situation.
BUG: 289583
Diffstat (limited to 'src')
| -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; | 
