From 42f455cacb565b7ea8be77263bb9d20961a4375f Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Mon, 4 Jan 2010 17:31:06 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiProgressView.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/frontends/qt4/GuiProgressView.cpp b/src/frontends/qt4/GuiProgressView.cpp index bfabc9e4da..51bb3b0510 100644 --- a/src/frontends/qt4/GuiProgressView.cpp +++ b/src/frontends/qt4/GuiProgressView.cpp @@ -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()));