Disable 'Cancel' button on ChangeMasterKeyWidget when setting an initial password for a new database, follow-up to #302

This commit is contained in:
Janek Bevendorff 2017-02-16 23:18:04 +01:00
parent daf0b72eed
commit 6dcb83f913
5 changed files with 10 additions and 3 deletions

View file

@ -136,3 +136,8 @@ void ChangeMasterKeyWidget::reject()
{
Q_EMIT editFinished(false);
}
void ChangeMasterKeyWidget::setCancelEnabled(bool enabled)
{
m_ui->buttonBox->button(QDialogButtonBox::Cancel)->setEnabled(enabled);
}