mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix Find button with search as you type
This commit is contained in:
parent
05004e138f
commit
180fca2fcd
@ -193,17 +193,17 @@ void GuiSearchWidget::findChanged()
|
||||
replacePrevPB->setEnabled(replace);
|
||||
replaceallPB->setEnabled(replace);
|
||||
if (instantSearchCB->isChecked() && !emptytext)
|
||||
findClicked();
|
||||
findClicked(false, true);
|
||||
}
|
||||
|
||||
|
||||
void GuiSearchWidget::findClicked(bool const backwards)
|
||||
void GuiSearchWidget::findClicked(bool const backwards, bool const instant)
|
||||
{
|
||||
docstring const needle = qstring_to_ucs4(findCO->currentText());
|
||||
find(needle, caseCB->isChecked(), wordsCB->isChecked(), !backwards,
|
||||
instantSearchCB->isChecked(), wrapCB->isChecked(), selectionCB->isChecked());
|
||||
instant, wrapCB->isChecked(), selectionCB->isChecked());
|
||||
uniqueInsert(findCO, findCO->currentText());
|
||||
if (!instantSearchCB->isChecked())
|
||||
if (!instant)
|
||||
findCO->lineEdit()->selectAll();
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,8 @@ public:
|
||||
private Q_SLOTS:
|
||||
void findChanged();
|
||||
void findBufferChanged();
|
||||
void findClicked(bool const backwards = false);
|
||||
void findClicked(bool const backwards = false,
|
||||
bool const instant = false);
|
||||
void findPrevClicked();
|
||||
void replaceClicked(bool const backwards = false);
|
||||
void replacePrevClicked();
|
||||
|
Loading…
Reference in New Issue
Block a user