Commit 03a4ccbb authored by Karel Slaný's avatar Karel Slaný

Directly applying changed in debug and log verbosity.

parent bfed624d
......@@ -404,28 +404,32 @@ void GlobalSettingsQmlWrapper::saveAllSettings(
int GlobalSettingsQmlWrapper::debugVerbosityLevel(void) const
{
if (GlobInstcs::setPtr != Q_NULLPTR) {
return GlobInstcs::setPtr->debugVerbosityLevel;
if (GlobInstcs::logPtr != Q_NULLPTR) {
return GlobInstcs::logPtr->debugVerbosity();
} else {
Q_ASSERT(0);
return 1;
return 0;
}
}
int GlobalSettingsQmlWrapper::logVerbosityLevel(void) const
{
if (GlobInstcs::setPtr != Q_NULLPTR) {
return GlobInstcs::setPtr->logVerbosityLevel;
if (GlobInstcs::logPtr != Q_NULLPTR) {
return GlobInstcs::logPtr->logVerbosity();
} else {
Q_ASSERT(0);
return 1;
return 0;
}
}
void GlobalSettingsQmlWrapper::setDebugVerbosityLevel(int dVL)
{
if (GlobInstcs::setPtr != Q_NULLPTR) {
GlobInstcs::setPtr->debugVerbosityLevel = dVL;
if ((GlobInstcs::logPtr != Q_NULLPTR) &&
(GlobInstcs::setPtr != Q_NULLPTR)) {
/* Set verbosity directly and store it to settings. */
GlobInstcs::logPtr->setDebugVerbosity(dVL);
GlobInstcs::setPtr->debugVerbosityLevel =
GlobInstcs::logPtr->debugVerbosity();
} else {
Q_ASSERT(0);
}
......@@ -433,8 +437,11 @@ void GlobalSettingsQmlWrapper::setDebugVerbosityLevel(int dVL)
void GlobalSettingsQmlWrapper::setLogVerosityLevel(int lVL)
{
if (GlobInstcs::setPtr != Q_NULLPTR) {
GlobInstcs::setPtr->logVerbosityLevel = lVL;
if ((GlobInstcs::logPtr != Q_NULLPTR) &&
(GlobInstcs::setPtr != Q_NULLPTR)) {
GlobInstcs::logPtr->setLogVerbosity(lVL);
GlobInstcs::setPtr->logVerbosityLevel =
GlobInstcs::logPtr->logVerbosity();
} else {
Q_ASSERT(0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment