mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
use lfun
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32677 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1dda726507
commit
d61f81f188
@ -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)));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user