mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 15:45:59 +01: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:
@@ -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 &);
|
||||
|
||||
Reference in New Issue
Block a user