Squash bug 803 for Qt and 1.4.x.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8740 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2004-05-05 08:29:31 +00:00
parent f557f14c69
commit 137af8fc0c
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-05-05 Angus Leeming <leeming@lyx.org>
* QRef.C (redoRefs): Prevent widgets from emitting any signals
whilst we modify their state.
2004-05-04 Angus Leeming <leeming@lyx.org>
* Dialogs.C: Remove "error" dialog identifier.

View File

@ -163,6 +163,11 @@ void QRef::gotoRef()
void QRef::redoRefs()
{
// Prevent these widgets from emitting any signals whilst
// we modify their state.
dialog_->refsLB->blockSignals(true);
dialog_->referenceED->blockSignals(true);
int lastref = dialog_->refsLB->currentItem();
dialog_->refsLB->setAutoUpdate(false);
@ -194,6 +199,10 @@ void QRef::redoRefs()
dialog_->refsLB->setAutoUpdate(true);
dialog_->refsLB->update();
// Re-activate the emission of signals by these widgets.
dialog_->refsLB->blockSignals(false);
dialog_->referenceED->blockSignals(false);
}