revert r32764.

Still this code hurts my eyes.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32765 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-01-04 17:31:06 +00:00
parent 7356db3818
commit 42f455cacb

View File

@ -75,10 +75,12 @@ GuiProgressView::GuiProgressView(GuiView & parent, Qt::DockWidgetArea area,
box->level = level;
widget_->settingsLayout->addWidget(box, (i + 3) % 10, (i + 3) / 10);
if (level == Debug::ANY)
box->setChecked(levels == level);
box->setChecked(false);
if ((levels == Debug::ANY) && (levels == level))
box->setChecked(true);
else
box->setChecked(levels & level);
if ((level != Debug::ANY) && (levels & level))
box->setChecked(true);
level_buttons << box;
connect(box, SIGNAL(stateChanged(int)), this, SLOT(levelChanged()));