2022-10-16 Fred Gleason <fredg@paravelsystems.com>

* Modified the 'Log Grids' dialog in rdlogmanager(1) to not display
	services with 'Bypass Grid Processing' set to 'Yes'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-10-16 12:05:28 -04:00
parent f038c0beae
commit 656a1a6d38
11 changed files with 19 additions and 10 deletions

View File

@@ -22,10 +22,12 @@
#include "rdescape_string.h"
#include "rdservicelistmodel.h"
RDServiceListModel::RDServiceListModel(bool incl_none,QObject *parent)
RDServiceListModel::RDServiceListModel(bool incl_none,bool exclude_bypass,
QObject *parent)
: QAbstractTableModel(parent)
{
d_include_none=incl_none;
d_exclude_bypass=exclude_bypass;
//
// Load Color Map
@@ -257,6 +259,9 @@ void RDServiceListModel::updateModel()
RDSqlQuery *q=NULL;
QString sql=sqlFields();
if(d_exclude_bypass) {
sql+="where `BYPASS_MODE`='N' ";
}
sql+="order by NAME ";
beginResetModel();
d_texts.clear();