Fix disconnection on escaped dialog.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25158 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-06-06 10:00:33 +00:00
parent fb1d57d24c
commit 5fe7778d28

View File

@ -15,6 +15,7 @@
#include "Dialog.h" #include "Dialog.h"
#include "GuiView.h" #include "GuiView.h"
#include <QCloseEvent>
#include <QDialog> #include <QDialog>
namespace lyx { namespace lyx {
@ -44,6 +45,12 @@ protected:
bool initialiseParams(std::string const & /*data*/) { return true; } bool initialiseParams(std::string const & /*data*/) { return true; }
void clearParams() {} void clearParams() {}
//@} //@}
void closeEvent(QCloseEvent * ev)
{
clearParams();
Dialog::disconnect();
ev->accept();
}
}; };
} // namespace frontend } // namespace frontend