summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
+ }
}
}