From 485f230f41998d6caa312225c4b505e388c93fdc Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Sat, 28 Mar 2009 18:18:05 +0000 Subject: [PATCH] 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 --- bacula/src/qt-console/console/console.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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()); } } -- 2.39.5