This commit is contained in:
Juergen Spitzmueller 2020-12-14 14:19:08 +01:00
parent 9121153fa0
commit 2d553ec5b9

View File

@ -86,8 +86,8 @@ void GuiSearch::showEvent(QShowEvent * e)
void GuiSearch::findChanged()
{
findPB->setEnabled(!findCO->currentText().isEmpty());
bool const replace = !findCO->currentText().isEmpty() && !isBufferReadonly();
findPB->setEnabled(replace);
replacePB->setEnabled(replace);
replaceallPB->setEnabled(replace);
replaceLA->setEnabled(replace);