summaryrefslogtreecommitdiff
path: root/src/urlbar/urlresolver.cpp
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2010-08-15 08:37:16 +0200
committermegabigbug <megabigbug@arrakis.(none)>2010-08-15 08:37:16 +0200
commit5c049a00fd9c799ea332436267ba1b85bc08fa1e (patch)
treeddb6334ca3367354596e4e95a2bb7ae4e9e3e32c /src/urlbar/urlresolver.cpp
parentintroduce a new SuggestionListItem (diff)
downloadrekonq-5c049a00fd9c799ea332436267ba1b85bc08fa1e.tar.xz
wait signal
Diffstat (limited to 'src/urlbar/urlresolver.cpp')
-rw-r--r--src/urlbar/urlresolver.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp
index 157e26a2..189a5e46 100644
--- a/src/urlbar/urlresolver.cpp
+++ b/src/urlbar/urlresolver.cpp
@@ -349,6 +349,11 @@ UrlSearchList UrlResolver::bookmarksResolution()
// STEP 4 = suggestion completion
UrlSearchList UrlResolver::suggestionResolution()
{
+ Application::opensearchManager()->requestSuggestion();
+ while (!m_suggestionReceived)
+ {
+ Application->instance()->processEvents(QEventLoop::WaitForMore | QEventLoop::ExcludeUserInput);
+ }
UrlSearchList list;
UrlSearchItem gItem(UrlSearchItem::Suggestion, "a", "a");