]> git.sur5r.net Git - bacula/bacula/commitdiff
OOps. this is better. Guess those parens {} are desired.
authorDirk H Bartley <dbartley@schupan.com>
Sat, 28 Mar 2009 18:18:05 +0000 (18:18 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Sat, 28 Mar 2009 18:18:05 +0000 (18:18 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8633 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/console/console.cpp

index facaba9e4c82330547209ca0dca6e11ea73b5133..2ab3f35584824115ca825ad108b46bebcd85380f 100644 (file)
@@ -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());
    }
 }