summaryrefslogtreecommitdiff
path: root/src/opensearch/opensearchmanager.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-02-28 17:33:59 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-02-28 17:33:59 +0100
commit4a13c398a3f490b1d36b30e2b40c712fbcada755 (patch)
tree06a6bae01cbdec0ef32938230b47a7ea20431d4f /src/opensearch/opensearchmanager.cpp
parentPrevents rekonq from crash if an UA service cannot be found. (diff)
downloadrekonq-4a13c398a3f490b1d36b30e2b40c712fbcada755.tar.xz
Do NOT parse suggestions referred to empty strings
BUG:267316
Diffstat (limited to 'src/opensearch/opensearchmanager.cpp')
-rw-r--r--src/opensearch/opensearchmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/opensearch/opensearchmanager.cpp b/src/opensearch/opensearchmanager.cpp
index 0b482409..2b5d24ae 100644
--- a/src/opensearch/opensearchmanager.cpp
+++ b/src/opensearch/opensearchmanager.cpp
@@ -173,7 +173,8 @@ void OpenSearchManager::dataReceived(KIO::Job *job, const QByteArray &data)
void OpenSearchManager::jobFinished(KJob *job)
{
- if (job->error())
+ // Do NOT parse if job had same errors or the typed string is empty
+ if (job->error() || _typedText.isEmpty())
{
emit suggestionsReceived(_typedText, ResponseList());
m_state = IDLE;