diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-17 18:51:58 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-17 18:51:58 +0200 |
commit | ceba6a65a94b69f495977b24dc592b53896f25f1 (patch) | |
tree | ed76e907ee7d8328563f645dfd2231184dcb296e | |
parent | Clean tab previews, not showing on loading (diff) | |
download | rekonq-ceba6a65a94b69f495977b24dc592b53896f25f1.tar.xz |
Workaound the focus bar problem
-rw-r--r-- | src/urlbar/completionwidget.cpp | 4 |
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(); |