]> git.lyx.org Git - features.git/commitdiff
Amend 24b71d30d56752 (#12048)
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 14 Dec 2020 13:19:08 +0000 (14:19 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 14 Dec 2020 13:19:08 +0000 (14:19 +0100)
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);