Fix bug 3461. Add reset_dialog() method that resets the QRef::at_ref_ boolean on dialog close.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17920 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2007-04-23 15:25:02 +00:00
parent 05ba87fe7a
commit 4a67bd31bd
2 changed files with 11 additions and 0 deletions

View File

@ -33,6 +33,8 @@ QRefDialog::QRefDialog(QRef * form)
form_, SLOT(slotApply()));
connect(closePB, SIGNAL(clicked()),
form_, SLOT(slotClose()));
connect(closePB, SIGNAL(clicked()),
this, SLOT( reset_dialog() ) );
connect( typeCO, SIGNAL( activated(int) ),
this, SLOT( changed_adaptor() ) );
@ -141,9 +143,16 @@ void QRefDialog::updateClicked()
}
void QRefDialog::reset_dialog() {
form_->at_ref_ = false;
form_->setGotoRef();
}
void QRefDialog::closeEvent(QCloseEvent * e)
{
form_->slotWMHide();
reset_dialog();
e->accept();
}

View File

@ -41,6 +41,8 @@ public Q_SLOTS:
void sortToggled(bool);
void updateClicked();
protected Q_SLOTS:
void reset_dialog();
protected:
void closeEvent(QCloseEvent * e);
private: