From ae4d9f2741f489e926217368fda4e19d33ae2969 Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Thu, 8 Apr 2010 22:32:41 +0200 Subject: Focus again the line edit of the find bar when Ctrl + F is pressed and the find bar is already shown. Fix bug 233706 --- src/findbar.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/findbar.cpp') 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(); -- cgit v1.2.1