summaryrefslogtreecommitdiff
path: root/src/findbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/findbar.cpp')
-rw-r--r--src/findbar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/findbar.cpp b/src/findbar.cpp
index 4f7ce11e..3efe470b 100644
--- a/src/findbar.cpp
+++ b/src/findbar.cpp
@@ -115,15 +115,15 @@ void FindBar::clear()
void FindBar::show()
{
+ // set focus to findbar if user select showFindBar shortcut
+ m_lineEdit->setFocus();
+ m_lineEdit->selectAll();
+
// show findbar if not visible
if (isVisible())
return;
QWidget::show();
-
- // set focus to findbar if user select showFindBar shortcut
- m_lineEdit->setFocus();
- m_lineEdit->selectAll();
}