don't crash: apply values before closing

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13979 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2006-06-01 20:33:37 +00:00
parent 1d14cdd0ea
commit 40783d2ebb

View File

@ -14,13 +14,12 @@
#include "QTabularDialog.h"
#include "QTabular.h"
//Added by qt3to4:
#include <QCloseEvent>
#include "validators.h"
#include "qt_helpers.h"
#include "controllers/ControlTabular.h"
#include <QCloseEvent>
#include <QCheckBox>
#include <QPushButton>
#include <QLineEdit>
@ -36,9 +35,6 @@ QTabularDialog::QTabularDialog(QTabular * form)
{
setupUi(this);
connect(closePB, SIGNAL(clicked()),
form, SLOT(slotClose()));
widthED->setValidator(unsignedLengthValidator(widthED));
connect( borderSetPB, SIGNAL( clicked() ), this, SLOT( borderSet_clicked() ) );
@ -93,6 +89,7 @@ void QTabularDialog::closeEvent(QCloseEvent * e)
void QTabularDialog::close_clicked()
{
form_->closeGUI();
form_->slotClose();
}