From: Kern Sibbald Date: Sat, 13 Nov 2010 16:26:42 +0000 (+0100) Subject: More porting from Branch-4.0 X-Git-Tag: Release-7.0.0~1408 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=14dda34ca3dd5a9555d81981773b0fbe119297ca;p=bacula%2Fbacula More porting from Branch-4.0 --- diff --git a/bacula/src/qt-console/bcomm/dircomm.cpp b/bacula/src/qt-console/bcomm/dircomm.cpp index 2042cee034..d2534d2308 100644 --- a/bacula/src/qt-console/bcomm/dircomm.cpp +++ b/bacula/src/qt-console/bcomm/dircomm.cpp @@ -292,6 +292,7 @@ int DirComm::read() } app->processEvents(); if (m_api_set && m_console->is_messagesPending() && is_notify_enabled() && m_console->hasFocus()) { + if (mainWin->m_commDebug) Pmsg1(000, "conn %i process_events\n", m_conn); m_console->write_dir(m_conn, ".messages", false); m_console->messagesPending(false); } @@ -316,6 +317,7 @@ int DirComm::read() m_console->write_dir(m_conn, ".messages", false); m_console->displayToPrompt(m_conn); m_console->messagesPending(false); + continue; } m_console->messagesPending(true); continue; diff --git a/bacula/src/qt-console/restore/restore.cpp b/bacula/src/qt-console/restore/restore.cpp index bd67b09815..107e791d8a 100644 --- a/bacula/src/qt-console/restore/restore.cpp +++ b/bacula/src/qt-console/restore/restore.cpp @@ -204,7 +204,7 @@ void restorePage::addDirectory(QString &newdirr) } if (isWin32Path(fullpath)) { - Pmsg0(dbglvl, "Windows drive\n"); + if (mainWin->m_miscDebug) Pmsg0(dbglvl, "Windows drive\n"); if (fullpath.left(1) == "/") { fullpath.replace(0, 1, ""); /* strip leading / */ } @@ -243,7 +243,7 @@ void restorePage::addDirectory(QString &newdirr) /* this is the base widget */ item = new QTreeWidgetItem(directoryWidget); item->setText(0, fullpath.toUtf8().data()); - Pmsg1(dbglvl, "Windows: %s\n", fullpath.toUtf8().data()); + if (mainWin->m_miscDebug) Pmsg1(dbglvl, "Windows: %s\n", fullpath.toUtf8().data()); item->setIcon(0,QIcon(QString::fromUtf8(":images/folder.png"))); } else { QTreeWidgetItem *parent = m_dirPaths.value(m_cwd); @@ -354,7 +354,7 @@ void restorePage::fileDoubleClicked(QTreeWidgetItem *item, int column) QString msg = QString("DoubleClick else of item column %1 fullpath %2\n") .arg(column,10) .arg(fullpath); - Pmsg1(dbglvl, "%s\n", msg.toUtf8().data()); + if (mainWin->m_miscDebug) Pmsg1(dbglvl, "%s\n", msg.toUtf8().data()); } } }