]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt/GuiSearch.cpp
Amend 24b71d30d56752 (#12048)
[features.git] / src / frontends / qt / GuiSearch.cpp
index c70e328562dd5b27c7ec613cae18c41d8cf1d5bd..3bd1be0fe728411afec205daa9fa6c23dc7c4a59 100644 (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);