From: Marco van Wieringen Date: Mon, 16 Jan 2012 18:06:42 +0000 (+0100) Subject: Tweak bat so drives are visable in content menu. X-Git-Tag: Release-7.0.0~342 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9e1f8341e6489cc48b52ee547388e04e339f996c;p=bacula%2Fbacula Tweak bat so drives are visable in content menu. --- 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);