From: Kern Sibbald Date: Wed, 9 Jul 2008 09:17:40 +0000 (+0000) Subject: Turn off bat debug code when debug off X-Git-Tag: Release-3.0.0~1168 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9d9c6d6f0364945d04b56bec41e5c15d633d0233;p=bacula%2Fbacula Turn off bat debug code when debug off git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7348 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/mainwin.cpp b/bacula/src/qt-console/mainwin.cpp index c8ddf00dab..d61302b23d 100644 --- a/bacula/src/qt-console/mainwin.cpp +++ b/bacula/src/qt-console/mainwin.cpp @@ -100,7 +100,7 @@ MainWin::MainWin(QWidget *parent) : QMainWindow(parent) if (m_miscDebug) { QString directoryResourceName; m_currentConsole->getDirResName(directoryResourceName); - Pmsg1(000, "Setting initial window to %s\n", directoryResourceName.toUtf8().data()); + Pmsg1(100, "Setting initial window to %s\n", directoryResourceName.toUtf8().data()); } } @@ -458,7 +458,7 @@ void MainWin::statusPageButtonClicked() bool found = false; foreach(Pages *page, m_pagehash) { if (m_currentConsole == page->console()) { - if (page->name() == tr("Director Status")) { + if (page->name() == tr("Director Status")) { found = true; page->setCurrent(); } @@ -825,8 +825,8 @@ void MainWin::readPreferences() settings.beginGroup("Misc"); m_longList = settings.value("longList", false).toBool(); ItemFormatterBase::setBytesConversion( - (ItemFormatterBase::BYTES_CONVERSION) settings.value("byteConvert", - ItemFormatterBase::BYTES_CONVERSION_IEC).toInt()); + (ItemFormatterBase::BYTES_CONVERSION) settings.value("byteConvert", + ItemFormatterBase::BYTES_CONVERSION_IEC).toInt()); m_openPlot = settings.value("openplot", false).toBool(); m_openBrowser = settings.value("openbrowser", false).toBool(); m_openDirStat = settings.value("opendirstat", false).toBool(); @@ -847,4 +847,3 @@ void MainWin::readPreferences() settings.endGroup(); } -