summaryrefslogtreecommitdiff
path: root/src/urlbar/completionwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/urlbar/completionwidget.cpp')
-rw-r--r--src/urlbar/completionwidget.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/urlbar/completionwidget.cpp b/src/urlbar/completionwidget.cpp
index 740f1471..0733b1f0 100644
--- a/src/urlbar/completionwidget.cpp
+++ b/src/urlbar/completionwidget.cpp
@@ -97,7 +97,6 @@ void CompletionWidget::sizeAndPosition()
void CompletionWidget::popup()
{
- down();
sizeAndPosition();
if (!isVisible())
show();
@@ -210,7 +209,10 @@ bool CompletionWidget::eventFilter( QObject *o, QEvent *e )
case Qt::Key_Enter:
case Qt::Key_Return:
hide();
- emit chosenUrl(_list.at(_currentIndex).url, Rekonq::CurrentTab);
+ if(_currentIndex >= 0)
+ emit chosenUrl(_list.at(_currentIndex).url, Rekonq::CurrentTab);
+ else
+ emit loadTypedUrl();
ev->accept();
return true;
break;