git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32677 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2009-12-30 17:15:00 +00:00
parent 1dda726507
commit d61f81f188

View File

@ -16,8 +16,10 @@
#include "GuiApplication.h"
#include "qt_helpers.h"
#include "FuncRequest.h"
#include "support/debug.h"
#include "support/convert.h"
#include <QSettings>
#include <QTime>
@ -95,13 +97,13 @@ void GuiProgressView::levelChanged()
if (button->isChecked())
// Debug::NONE overwrites other levels
if (button->level == Debug::NONE) {
lyxerr.setLevel(Debug::NONE);
return;
level = Debug::NONE;
break;
} else {
level |= button->level;
}
}
lyxerr.setLevel(static_cast<Debug::Type>(level));
dispatch(FuncRequest(LFUN_DEBUG_LEVEL_SET, convert<std::string>(level)));
}