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 committed 2017-02-17 00:09:36 +01:00
1 parent daf0b72eed
commit 6dcb83f913
5 files changed
+10 -3

No files matched your search

+5
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);
}