summaryrefslogtreecommitdiff
path: root/src/urlbar
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-17 18:51:58 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-17 18:51:58 +0200
commitceba6a65a94b69f495977b24dc592b53896f25f1 (patch)
treeed76e907ee7d8328563f645dfd2231184dcb296e /src/urlbar
parentClean tab previews, not showing on loading (diff)
downloadrekonq-ceba6a65a94b69f495977b24dc592b53896f25f1.tar.xz
Workaound the focus bar problem
Diffstat (limited to 'src/urlbar')
-rw-r--r--src/urlbar/completionwidget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/urlbar/completionwidget.cpp b/src/urlbar/completionwidget.cpp
index d6777b18..be86238d 100644
--- a/src/urlbar/completionwidget.cpp
+++ b/src/urlbar/completionwidget.cpp
@@ -256,6 +256,10 @@ void CompletionWidget::itemChosen(ListItem *item, Qt::MouseButton button)
void CompletionWidget::suggestUrls(const QString &text)
{
+ QWidget *w = qobject_cast<QWidget *>(parent());
+ if(!w->hasFocus())
+ return;
+
if(text.isEmpty())
{
hide();