Update search after using the qlineedit clear button.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-08-26 13:27:14 +03:00
parent 758f1caa1b
commit f22eccf91e

View File

@ -1980,7 +1980,7 @@ void TMainWindow::InitWindow()
connect(ui->comboBoxPMSystem, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
&TMainWindow::SavePMSystem);
connect(ui->lineEditFind, &QLineEdit::textEdited, [=] (const QString &term){search->Find(term);});
connect(ui->lineEditFind, &QLineEdit::textChanged, [=] (const QString &term){search->Find(term);});
connect(ui->toolButtonFindPrevious, &QToolButton::clicked, [=] (){search->FindPrevious();});
connect(ui->toolButtonFindNext, &QToolButton::clicked, [=] (){search->FindNext();});