mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
05ba87fe7a
commit
4a67bd31bd
@ -33,6 +33,8 @@ QRefDialog::QRefDialog(QRef * form)
|
|||||||
form_, SLOT(slotApply()));
|
form_, SLOT(slotApply()));
|
||||||
connect(closePB, SIGNAL(clicked()),
|
connect(closePB, SIGNAL(clicked()),
|
||||||
form_, SLOT(slotClose()));
|
form_, SLOT(slotClose()));
|
||||||
|
connect(closePB, SIGNAL(clicked()),
|
||||||
|
this, SLOT( reset_dialog() ) );
|
||||||
|
|
||||||
connect( typeCO, SIGNAL( activated(int) ),
|
connect( typeCO, SIGNAL( activated(int) ),
|
||||||
this, SLOT( changed_adaptor() ) );
|
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)
|
void QRefDialog::closeEvent(QCloseEvent * e)
|
||||||
{
|
{
|
||||||
form_->slotWMHide();
|
form_->slotWMHide();
|
||||||
|
reset_dialog();
|
||||||
e->accept();
|
e->accept();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,6 +41,8 @@ public Q_SLOTS:
|
|||||||
void sortToggled(bool);
|
void sortToggled(bool);
|
||||||
void updateClicked();
|
void updateClicked();
|
||||||
|
|
||||||
|
protected Q_SLOTS:
|
||||||
|
void reset_dialog();
|
||||||
protected:
|
protected:
|
||||||
void closeEvent(QCloseEvent * e);
|
void closeEvent(QCloseEvent * e);
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user