mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
fb1d57d24c
commit
5fe7778d28
@ -15,6 +15,7 @@
|
||||
#include "Dialog.h"
|
||||
#include "GuiView.h"
|
||||
|
||||
#include <QCloseEvent>
|
||||
#include <QDialog>
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user