  l->addLayout(hl, Buttons, 1);

  setLayout(l);
  
  authorDateTimeTypeChanged(m_authorCommitDateType->type());
  committerDateTimeTypeChanged(m_committerCommitDateType->type());
}

void AmendDialog::authorDateTimeTypeChanged(const SelectedDateTimeType type) {
  const auto enabled = type == AmendDialog::SelectedDateTimeType::Manual;
  m_lAuthorCommitDate->setVisible(enabled);
  m_authorCommitDate->setVisible(enabled);
}

void AmendDialog::committerDateTimeTypeChanged(
    const SelectedDateTimeType type) {
  const auto enabled = type == AmendDialog::SelectedDateTimeType::Manual;
  m_lCommitterCommitDate->setVisible(enabled);
  m_committerCommitDate->setVisible(enabled);
}
