summaryrefslogtreecommitdiff
path: root/src/findbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/findbar.cpp')
-rw-r--r--src/findbar.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/findbar.cpp b/src/findbar.cpp
index 7cbe9d17..48a3c4e0 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();