mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-07-09 00:47:46 +02:00
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:
parent
28d8425b94
commit
e6e09efb0d
@ -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.
|
||||
|
@ -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();
|
||||
|
@ -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 &);
|
||||
|
Loading…
x
Reference in New Issue
Block a user