summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2010-04-08 22:32:41 +0200
committerYoann Laissus <yoann.laissus@gmail.com>2010-04-08 22:32:41 +0200
commitae4d9f2741f489e926217368fda4e19d33ae2969 (patch)
tree80d347fdb6d7e3bb2d12f423ec4f3c0ca638be1c
parentThis is a really big commit, implementing the new urlbar (diff)
downloadrekonq-ae4d9f2741f489e926217368fda4e19d33ae2969.tar.xz
Focus again the line edit of the find bar when Ctrl + F is pressed and the find bar is already shown.
Fix bug 233706
-rw-r--r--src/findbar.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/findbar.cpp b/src/findbar.cpp
index 7cbe9d17..43612fc7 100644
--- a/src/findbar.cpp
+++ b/src/findbar.cpp
@@ -143,15 +143,14 @@ bool FindBar::highlightAllState() const
void FindBar::show()
{
// show findbar if not visible
- if (isVisible())
- return;
-
- QWidget::show();
+ if(isHidden())
+ {
+ QWidget::show();
+ emit searchString(m_lineEdit->text());
+ }
+
m_hideTimer->start(60000);
-
- // emit a new find signal with the current text
- emit(searchString(m_lineEdit->text()));
-
+
// set focus to findbar if user select showFindBar shortcut
m_lineEdit->setFocus();
m_lineEdit->selectAll();