mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 21:55:29 +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 "GuiApplication.h"
|
||||||
|
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
|
#include "FuncRequest.h"
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
|
#include "support/convert.h"
|
||||||
|
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QTime>
|
#include <QTime>
|
||||||
@ -95,13 +97,13 @@ void GuiProgressView::levelChanged()
|
|||||||
if (button->isChecked())
|
if (button->isChecked())
|
||||||
// Debug::NONE overwrites other levels
|
// Debug::NONE overwrites other levels
|
||||||
if (button->level == Debug::NONE) {
|
if (button->level == Debug::NONE) {
|
||||||
lyxerr.setLevel(Debug::NONE);
|
level = Debug::NONE;
|
||||||
return;
|
break;
|
||||||
} else {
|
} else {
|
||||||
level |= button->level;
|
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