From: Dirk H Bartley Date: Sat, 28 Mar 2009 18:18:05 +0000 (+0000) Subject: OOps. this is better. Guess those parens {} are desired. X-Git-Tag: Release-7.0.0~3222 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=12ac015e5a3b852d1d49084a5229b48d4c89c603;p=bacula%2Fbacula OOps. this is better. Guess those parens {} are desired. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8633 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/console/console.cpp b/bacula/src/qt-console/console/console.cpp index facaba9e4c..2ab3f35584 100644 --- a/bacula/src/qt-console/console/console.cpp +++ b/bacula/src/qt-console/console/console.cpp @@ -137,17 +137,18 @@ void Console::connect_dir() void Console::populateLists(bool forcenew) { int conn; - if (forcenew) + if (forcenew) { if (!newDirComm(conn)) { Pmsg0(000, "newDirComm Seems to Failed to create a connection for populateLists\n"); return; } - else + } else { if(!availableDirComm(conn)) { Pmsg0(000, "availableDirComm Seems to Failed to find a connection for populateLists\n"); return; } - populateLists(conn); + } + populateLists(conn); } void Console::populateLists(int conn) @@ -171,9 +172,10 @@ void Console::populateLists(int conn) dir_cmd(conn, ".levels", level_list); if (mainWin->m_connDebug) { - QString dbgmsg = QString("jobs=%1 clients=%2 filesets=%3 msgs=%4 pools=%5 storage=%6 types=%7 levels=%8\n") + QString dbgmsg = QString("jobs=%1 clients=%2 filesets=%3 msgs=%4 pools=%5 storage=%6 types=%7 levels=%8 conn=%9\n") .arg(job_list.count()).arg(client_list.count()).arg(fileset_list.count()).arg(messages_list.count()) - .arg(pool_list.count()).arg(storage_list.count()).arg(type_list.count()).arg(level_list.count()); + .arg(pool_list.count()).arg(storage_list.count()).arg(type_list.count()).arg(level_list.count()) + .arg(conn); Pmsg1(000, "%s\n", dbgmsg.toUtf8().data()); } }