diff --git a/src/frontends/qt4/DialogView.h b/src/frontends/qt4/DialogView.h index d34b83dff2..8bcec53e2b 100644 --- a/src/frontends/qt4/DialogView.h +++ b/src/frontends/qt4/DialogView.h @@ -15,6 +15,7 @@ #include "Dialog.h" #include "GuiView.h" +#include #include namespace lyx { @@ -44,6 +45,12 @@ protected: bool initialiseParams(std::string const & /*data*/) { return true; } void clearParams() {} //@} + void closeEvent(QCloseEvent * ev) + { + clearParams(); + Dialog::disconnect(); + ev->accept(); + } }; } // namespace frontend