2017-01-18 Fred Gleason <fredg@paravelsystems.com>

* Fixed regressions in 'rdlogedit/edit_log.cpp' that caused a change
	to the Purge Date values to fail to be saved.
This commit is contained in:
Fred Gleason 2017-01-18 14:29:05 -05:00
parent 28d8425b94
commit e6e09efb0d
3 changed files with 21 additions and 0 deletions

View File

@ -15527,3 +15527,6 @@
2017-01-18 Fred Gleason <fredg@paravelsystems.com>
* Added a <purgeDate> tag to the return document for the 'ListLogs'
web service call.
2017-01-18 Fred Gleason <fredg@paravelsystems.com>
* Fixed regressions in 'rdlogedit/edit_log.cpp' that caused a change
to the Purge Date values to fail to be saved.

View File

@ -210,10 +210,14 @@ EditLog::EditLog(QString logname,QString *filter,QString *group,
edit_purgedate_edit=new QDateEdit(this);
edit_purgedate_button=new QPushButton(tr("Select"),this);
edit_purgedate_button->setFont(label_font);
connect(edit_purgedate_box,SIGNAL(toggled(bool)),
this,SLOT(purgeDateToggledData(bool)));
connect(edit_purgedate_box,SIGNAL(toggled(bool)),
edit_purgedate_edit,SLOT(setEnabled(bool)));
connect(edit_purgedate_box,SIGNAL(toggled(bool)),
edit_purgedate_button,SLOT(setEnabled(bool)));
connect(edit_purgedate_edit,SIGNAL(valueChanged(const QDate &)),
this,SLOT(purgeDateChangedData(const QDate &)));
connect(edit_purgedate_button,SIGNAL(clicked()),
this,SLOT(selectPurgeDateData()));
@ -627,6 +631,18 @@ void EditLog::descriptionChangedData(const QString &)
}
void EditLog::purgeDateChangedData(const QDate &date)
{
SetLogModified(true);
}
void EditLog::purgeDateToggledData(bool state)
{
SetLogModified(true);
}
void EditLog::selectPurgeDateData()
{
QDate date=edit_purgedate_edit->date();

View File

@ -61,6 +61,8 @@ class EditLog : public QDialog
private slots:
void descriptionChangedData(const QString &);
void purgeDateChangedData(const QDate &date);
void purgeDateToggledData(bool state);
void selectPurgeDateData();
void serviceActivatedData(const QString &svcname);
void dateValueChangedData(const QDate &);