summaryrefslogtreecommitdiff
path: root/src/urlbar/urlresolver.cpp
diff options
context:
space:
mode:
authorLionel Chauvin <megabigbug@yahoo.fr>2010-10-10 20:04:00 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-10-30 11:43:03 +0200
commit4d4125583db5f3c2e0d7eca6253bfc8852935706 (patch)
tree591dffb41bcf1e8967a6d4a1c27b67ceeec2be8d /src/urlbar/urlresolver.cpp
parentimprove layout of visual suggestions (diff)
downloadrekonq-4d4125583db5f3c2e0d7eca6253bfc8852935706.tar.xz
fix suggestion not displayed when missing .xml
Diffstat (limited to 'src/urlbar/urlresolver.cpp')
-rw-r--r--src/urlbar/urlresolver.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp
index 75349407..c3efb903 100644
--- a/src/urlbar/urlresolver.cpp
+++ b/src/urlbar/urlresolver.cpp
@@ -380,22 +380,19 @@ void UrlResolver::computeSuggestions()
{
// if a string startsWith /, it is probably a local path
// so, no need for suggestions...
- if(_typedString.startsWith('/'))
+ if(_typedString.startsWith('/') || !Application::opensearchManager()->isSuggestionAvailable())
{
UrlSearchList list;
emit suggestionsReady(list, _typedString);
return;
}
- if (Application::opensearchManager()->isSuggestionAvailable())
- {
- connect(Application::opensearchManager(),
- SIGNAL(suggestionReceived(const QString &, const ResponseList &)),
- this,
- SLOT(suggestionsReceived(const QString &, const ResponseList &)));
+ connect(Application::opensearchManager(),
+ SIGNAL(suggestionReceived(const QString &, const ResponseList &)),
+ this,
+ SLOT(suggestionsReceived(const QString &, const ResponseList &)));
- Application::opensearchManager()->requestSuggestion(_typedString);
- }
+ Application::opensearchManager()->requestSuggestion(_typedString);
}