diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-08-20 15:37:21 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-08-20 15:37:21 +0200 |
commit | c39497cca6a6fb80a4658572d45bec53d561f1ed (patch) | |
tree | a1cb9c4781f92e7450e353efcf1e349fbcc31d7e /src/urlbar/completionwidget.cpp | |
parent | OpenSearch review (diff) | |
parent | fix suggestion item: use the correct search engine (diff) | |
download | rekonq-c39497cca6a6fb80a4658572d45bec53d561f1ed.tar.xz |
Merge commit 'refs/merge-requests/169' of git://gitorious.org/rekonq/mainline into opensearch
Diffstat (limited to 'src/urlbar/completionwidget.cpp')
-rw-r--r-- | src/urlbar/completionwidget.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/urlbar/completionwidget.cpp b/src/urlbar/completionwidget.cpp index b77e2d7c..a9203bf7 100644 --- a/src/urlbar/completionwidget.cpp +++ b/src/urlbar/completionwidget.cpp @@ -153,13 +153,10 @@ void CompletionWidget::activateCurrentListItem() //update text of the url bar bar->blockSignals(true); //without compute suggestions - if (!widget->inherits("SearchListItem")) - bar->setQUrl( widget->url() ); - else - bar->setQUrl( _typedString ); + bar->setQUrl(widget->text()); bar->blockSignals(false); bar->setFocus(); - bar->setCursorPosition( bar->text().length() ); + bar->setCursorPosition(bar->text().length()); } @@ -240,7 +237,7 @@ bool CompletionWidget::eventFilter(QObject *obj, QEvent *ev) if( _currentIndex == -1) _currentIndex = 0; child = findChild<ListItem *>(QString::number(_currentIndex)); - if(child && _typedString == w->text()) + if(child) { emit chosenUrl(child->url(), Rekonq::CurrentTab); } |