]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSearch.cpp
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiSearch.cpp
index b6c7cc74006c8a30a7aa6545c6a919ada5be8f33..5564ac567d7dcb91917a999bd2006227db17412e 100644 (file)
@@ -19,7 +19,6 @@
 #include "FuncRequest.h"
 #include "lyxfind.h"
 
-#include <QCloseEvent>
 #include <QLineEdit>
 #include <QShowEvent>
 
@@ -65,18 +64,12 @@ GuiSearch::GuiSearch(GuiView & lv)
 
 void GuiSearch::showEvent(QShowEvent * e)
 {
+       findPB->setFocus();
        findCO->lineEdit()->selectAll();
        GuiDialog::showEvent(e);
 }
 
 
-void GuiSearch::closeEvent(QCloseEvent * e)
-{
-       slotClose();
-       GuiDialog::closeEvent(e);
-}
-
-
 void GuiSearch::findChanged()
 {
        if (findCO->currentText().isEmpty()) {