diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-08-20 15:30:51 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-08-20 15:30:51 +0200 |
commit | cfe16b08dad1784b931c2fe55f32a1fa579949ce (patch) | |
tree | a1cb9c4781f92e7450e353efcf1e349fbcc31d7e /src/urlbar/completionwidget.cpp | |
parent | OpenSearch review (diff) | |
parent | fix suggestion item: use the correct search engine (diff) | |
download | rekonq-cfe16b08dad1784b931c2fe55f32a1fa579949ce.tar.xz |
Merge commit 'refs/merge-requests/169' of git://gitorious.org/rekonq/mainline into opensearch2
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); } |