mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 16:11:12 +02:00
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user