diff options
author | Tirtha Chatterjee <tirtha.p.chatterjee@gmail.com> | 2012-12-16 15:44:15 +0530 |
---|---|---|
committer | Tirtha Chatterjee <tirtha.p.chatterjee@gmail.com> | 2012-12-16 15:44:15 +0530 |
commit | 08e535a297a6d8fa1200c62b7b612c8ee2f6b676 (patch) | |
tree | 202a477eb54f59a3457f25e363145d3d84d01eaa | |
parent | Krazy docbook fixes (diff) | |
download | rekonq-08e535a297a6d8fa1200c62b7b612c8ee2f6b676.tar.xz |
Only do CTRL+ENTER thing if valid URL, search otherwise
-rw-r--r-- | src/urlbar/completionwidget.cpp | 11 |
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; + } } } |