From 9e1f8341e6489cc48b52ee547388e04e339f996c Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Mon, 16 Jan 2012 19:06:42 +0100 Subject: [PATCH] Tweak bat so drives are visable in content menu. --- bacula/src/qt-console/storage/content.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bacula/src/qt-console/storage/content.cpp b/bacula/src/qt-console/storage/content.cpp index e36c765324..9794be0916 100644 --- a/bacula/src/qt-console/storage/content.cpp +++ b/bacula/src/qt-console/storage/content.cpp @@ -261,7 +261,6 @@ void Content::populateContent() row++; } - tableContent->verticalHeader()->hide(); tableContent->sortByColumn(0, Qt::AscendingOrder); tableContent->setSortingEnabled(true); @@ -276,11 +275,15 @@ void Content::populateContent() tableDrive->verticalHeader()->hide(); QStringList drives = results_all.filter(QRegExp("^D\\|[0-9]+\\|")); + tableDrive->setRowCount(drives.size()); + row = 0; foreach (resultline, drives) { fieldlist = resultline.split("|"); - if (fieldlist.size() < 4) + if (fieldlist.size() < 4) { + Pmsg1(0, "Discarding %s\n", resultline.data()); continue; /* some fields missing, ignore row */ + } int index=0; QStringListIterator fld(fieldlist); -- 2.39.5