Commit 6ebf74ba authored by Thomas Baumgart's avatar Thomas Baumgart
Browse files

Disable date edit widget for schedules if last day of month is checked

BUG: 444262
FIXED-IN: 5.1.3
parent bd835cb1
Pipeline #90744 passed with stage
in 7 minutes and 53 seconds
......@@ -366,8 +366,12 @@ TransactionEditor* KEditScheduleDlg::startEdit()
}
// connect the postdate modification signal to our update routine
if (auto dateEdit = dynamic_cast<KMyMoneyDateInput*>(editor->haveWidget("postdate")))
if (auto dateEdit = dynamic_cast<KMyMoneyDateInput*>(editor->haveWidget("postdate"))) {
connect(dateEdit, &KMyMoneyDateInput::dateChanged, this, &KEditScheduleDlg::slotPostDateChanged);
connect(d->ui->m_lastDayInMonthEdit, &QCheckBox::stateChanged, dateEdit, &KMyMoneyDateInput::setDisabled);
// update initial state
dateEdit->setDisabled(d->ui->m_lastDayInMonthEdit->isChecked());
}
d->ui->m_nameEdit->setFocus();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment