From 5fe7778d28b8cb936b648e434a5430bc3ce50b7a Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 6 Jun 2008 10:00:33 +0000 Subject: [PATCH] Fix disconnection on escaped dialog. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25158 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/DialogView.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.39.2