summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-03-08 17:29:11 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-03-08 17:29:11 +0100
commitd4af85597e389594a3f69fd2c79059f7d8826275 (patch)
tree9a747178b90773efda2da3370a75a5cdefa4ef3c
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-d4af85597e389594a3f69fd2c79059f7d8826275.tar.xz
Checking for the empty string causing Rohan & Pano's bug...
Next test CCBUG:267316 By the way, are you sure this is yet happening? I can no more reproduce it since the first fix...
-rw-r--r--src/opensearch/opensearchengine.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/opensearch/opensearchengine.cpp b/src/opensearch/opensearchengine.cpp
index cfd9b4b6..80eb308f 100644
--- a/src/opensearch/opensearchengine.cpp
+++ b/src/opensearch/opensearchengine.cpp
@@ -270,6 +270,9 @@ ResponseList OpenSearchEngine::parseSuggestion(const QByteArray &resp)
if (!m_parser)
return ResponseList();
+ if(resp.isEmpty())
+ return ResponseList();
+
return m_parser->parse(resp);
}
@@ -282,7 +285,7 @@ QString OpenSearchEngine::type()
QString OpenSearchEngine::suggestionPathFor(const QString &searchTerm)
{
- return KStandardDirs::locateLocal("cache", QString("opensearch/") + m_name + QString("/") + searchTerm, true);
+ return KStandardDirs::locateLocal("cache", QL1S("opensearch/") + m_name + QL1S("/") + searchTerm, true);
}