summaryrefslogtreecommitdiff
path: root/src/urlbar
diff options
context:
space:
mode:
Diffstat (limited to 'src/urlbar')
-rw-r--r--src/urlbar/completionwidget.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/urlbar/completionwidget.cpp b/src/urlbar/completionwidget.cpp
index 207cc3ca..02f0bc7e 100644
--- a/src/urlbar/completionwidget.cpp
+++ b/src/urlbar/completionwidget.cpp
@@ -290,10 +290,13 @@ bool CompletionWidget::eventFilter(QObject *obj, QEvent *ev)
url.setHost(host);
}
- emit chosenUrl(url, Rekonq::CurrentTab);
- kev->accept();
- hide();
- return true;
+ if (url.isValid())
+ {
+ emit chosenUrl(url, Rekonq::CurrentTab);
+ kev->accept();
+ hide();
+ return true;
+ }
}
}