Disable signals on programmatic checks to prevent unnecessary trigger of slots.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17790 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2007-04-13 02:09:50 +00:00
parent 580ca795dd
commit 4502bc5f3d

View File

@ -114,7 +114,9 @@ void QParagraph::update_contents()
LyXAlignment defaultAlignment = controller().alignDefault();
bool alignmentIsDefault =
newAlignment == LYX_ALIGN_LAYOUT || newAlignment == defaultAlignment;
dialog_->alignDefaultCB->blockSignals(true);
dialog_->alignDefaultCB->setChecked(alignmentIsDefault);
dialog_->alignDefaultCB->blockSignals(false);
dialog_->checkAlignmentRadioButtons();
dialog_->alignmentToRadioButtons(newAlignment);