Skip to content

Commit

Permalink
2023-08-03 Fred Gleason <[email protected]>
Browse files Browse the repository at this point in the history
	* Made the 'Script Path' control on the 'Edit PyPAD Instance' dialog
	in rdadmin(1) read-write.

Signed-off-by: Fred Gleason <[email protected]>
  • Loading branch information
ElvishArtisan committed Aug 3, 2023
1 parent f732852 commit 9623099
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
* Made the 'Script Path' control on the 'Edit PyPAD Instance' dialog
in rdadmin(1) read-write.
4 changes: 2 additions & 2 deletions rdadmin/edit_pypad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// Edit a PyPAD Instance Configuration
//
// (C) Copyright 2018-2021 Fred Gleason <[email protected]>
// (C) Copyright 2018-2023 Fred Gleason <[email protected]>
//
// 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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9623099

Please sign in to comment.