summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();