From 00dcf241de4203680454c78e66db3e3d7b9c0f32 Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Tue, 11 Mar 2008 13:05:43 +0000 Subject: [PATCH] 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 --- bacula/src/qt-console/status/clientstat.cpp | 8 +------- bacula/src/qt-console/status/dirstat.cpp | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) 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; -- 2.39.5