summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/urlbar/completionwidget.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/urlbar/completionwidget.cpp b/src/urlbar/completionwidget.cpp
index 465f5cf5..c8209fbc 100644
--- a/src/urlbar/completionwidget.cpp
+++ b/src/urlbar/completionwidget.cpp
@@ -308,7 +308,16 @@ bool CompletionWidget::eventFilter(QObject *obj, QEvent *ev)
else //the user type too fast (completionwidget not visible or suggestion not downloaded)
{
UrlResolver res(w->text());
- emit chosenUrl(res.orderedSearchItems().first().url, Rekonq::CurrentTab);
+ UrlSearchList list = res.orderedSearchItems();
+ if(list.isEmpty())
+ {
+ kDebug() << "Url Search List EMPTY!!!";
+ emit chosenUrl(KUrl(_typedString), Rekonq::CurrentTab);
+ }
+ else
+ {
+ emit chosenUrl(list.first().url, Rekonq::CurrentTab);
+ }
}
kev->accept();
hide();