From 9623099fd0976649d0a608dd2215c00a69dd42c5 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Thu, 3 Aug 2023 14:30:12 -0400 Subject: [PATCH] 2023-08-03 Fred Gleason * Made the 'Script Path' control on the 'Edit PyPAD Instance' dialog in rdadmin(1) read-write. Signed-off-by: Fred Gleason --- ChangeLog | 3 +++ rdadmin/edit_pypad.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e650a9b4..7cd0ed78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24318,3 +24318,6 @@ * Fixed a regression in rdlogmanager(1) that caused records to be omitted from reports using the 'CBSI DeltaFlex Traffic Reconciliation v2.01' export filter. +2023-08-03 Fred Gleason + * Made the 'Script Path' control on the 'Edit PyPAD Instance' dialog + in rdadmin(1) read-write. diff --git a/rdadmin/edit_pypad.cpp b/rdadmin/edit_pypad.cpp index a8b4aa22..97f2ff46 100644 --- a/rdadmin/edit_pypad.cpp +++ b/rdadmin/edit_pypad.cpp @@ -2,7 +2,7 @@ // // Edit a PyPAD Instance Configuration // -// (C) Copyright 2018-2021 Fred Gleason +// (C) Copyright 2018-2023 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as @@ -39,7 +39,6 @@ EditPypad::EditPypad(int id,QWidget *parent) edit_script_path_label->setFont(labelFont()); edit_script_path_label->setAlignment(Qt::AlignVCenter|Qt::AlignRight); edit_script_path_edit=new QLineEdit(this); - edit_script_path_edit->setReadOnly(true); // // Description @@ -108,6 +107,7 @@ QSizePolicy EditPypad::sizePolicy() const void EditPypad::okData() { QString sql=QString("update `PYPAD_INSTANCES` set ")+ + "`SCRIPT_PATH`='"+RDEscapeString(edit_script_path_edit->text())+"',"+ "`DESCRIPTION`='"+RDEscapeString(edit_description_edit->text())+"',"+ "`CONFIG`='"+RDEscapeString(edit_config_text->toPlainText())+"' where "+ QString::asprintf("`ID`=%u",edit_id);