X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fqt-console%2Frestore%2Frestore.cpp;h=bd67b09815f14fa10c4c6e83db6ab127b725c581;hb=0c7b32c5e8542c8da83793f75ba3b0271a5cdd58;hp=b3a5a480dc5f9f4d56ed5685b1970f453ca96451;hpb=1501dee53fb816f928bd2848f0120419a46113ff;p=bacula%2Fbacula diff --git a/bacula/src/qt-console/restore/restore.cpp b/bacula/src/qt-console/restore/restore.cpp index b3a5a480dc..bd67b09815 100644 --- a/bacula/src/qt-console/restore/restore.cpp +++ b/bacula/src/qt-console/restore/restore.cpp @@ -253,7 +253,9 @@ void restorePage::addDirectory(QString &newdirr) item->setText(0, newdir.toUtf8().data()); item->setIcon(0,QIcon(QString::fromUtf8(":images/folder.png"))); directoryWidget->expandItem(parent); - Pmsg1(dbglvl, "%s\n", newdir.toUtf8().data()); + if (mainWin->m_miscDebug) { + Pmsg1(dbglvl, "%s\n", newdir.toUtf8().data()); + } } else { ok = false; if (mainWin->m_miscDebug) { @@ -343,7 +345,9 @@ void restorePage::fileDoubleClicked(QTreeWidgetItem *item, int column) if (item->text(1).endsWith("/")) { QString fullpath = m_cwd + item->text(1); QTreeWidgetItem *item = m_dirPaths.value(fullpath); - Pmsg1(dbglvl, "%s\n", fullpath.toUtf8().data()); + if (mainWin->m_miscDebug) { + Pmsg1(dbglvl, "%s\n", fullpath.toUtf8().data()); + } if (item) { directoryWidget->setCurrentItem(item); } else {