From: Abdelrazak Younes Date: Fri, 6 Jun 2008 10:00:33 +0000 (+0000) Subject: Fix disconnection on escaped dialog. X-Git-Tag: 1.6.10~4482 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5fe7778d28b8cb936b648e434a5430bc3ce50b7a;p=features.git Fix disconnection on escaped dialog. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25158 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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