summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-11-12 23:40:28 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:06 +0100
commitabc9bd22d97bcb70219035bf3661db0c5930e85f (patch)
tree37684d9f95283a7c287e32337400827edaa65ae7 /src
parentClean up url suggestions, step 1 (diff)
downloadrekonq-abc9bd22d97bcb70219035bf3661db0c5930e85f.tar.xz
clean up urlbar on alt + return new tab load
Diffstat (limited to 'src')
-rw-r--r--src/urlbar/completionwidget.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/urlbar/completionwidget.cpp b/src/urlbar/completionwidget.cpp
index e76c598d..f227eec1 100644
--- a/src/urlbar/completionwidget.cpp
+++ b/src/urlbar/completionwidget.cpp
@@ -321,6 +321,9 @@ bool CompletionWidget::eventFilter(QObject *obj, QEvent *ev)
hide();
emit chosenUrl(urlToLoad, type);
kev->accept();
+
+ if (type != Rekonq::CurrentTab)
+ w->clear();
return true;
}
case Qt::Key_Escape: