From: Dirk H Bartley Date: Tue, 11 Mar 2008 13:05:43 +0000 (+0000) Subject: Reverse the order of the terminated table to be like the job list class. Most X-Git-Tag: Release-7.0.0~4858 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b0f8d8f5ef800999d7a4f7de2bd598b5140820be;p=bacula%2Fbacula Reverse the order of the terminated table to be like the job list class. Most recent at the top. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6584 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/status/clientstat.cpp b/bacula/src/qt-console/status/clientstat.cpp index 5f616c0d1e..99ba982f09 100644 --- a/bacula/src/qt-console/status/clientstat.cpp +++ b/bacula/src/qt-console/status/clientstat.cpp @@ -36,12 +36,6 @@ #include "bat.h" #include "clientstat.h" -/* - * .status client=XXX header - * .status client=XXX running - * .status client=XXX terminated - */ - /* * Constructor for the class */ @@ -173,7 +167,7 @@ void ClientStat::populateTerminated() p_tableitem->setBackground(Qt::green); else p_tableitem->setBackground(Qt::red); - terminatedTable->setItem(row, column, p_tableitem); + terminatedTable->setItem(results.size() - row - 1, column, p_tableitem); column += 1; } row += 1; diff --git a/bacula/src/qt-console/status/dirstat.cpp b/bacula/src/qt-console/status/dirstat.cpp index b749fd7b85..c1e3a027a6 100644 --- a/bacula/src/qt-console/status/dirstat.cpp +++ b/bacula/src/qt-console/status/dirstat.cpp @@ -166,7 +166,7 @@ void DirStat::populateTerminated() p_tableitem->setBackground(Qt::green); else p_tableitem->setBackground(Qt::red); - terminatedTable->setItem(row, column, p_tableitem); + terminatedTable->setItem(results.size() - row - 1, column, p_tableitem); column += 1; } row += 1;