mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-01-04 01:55:30 -05:00
Disable 'Cancel' button on ChangeMasterKeyWidget when setting an initial password for a new database, follow-up to #302
This commit is contained in:
parent
daf0b72eed
commit
6dcb83f913
5 changed files with 10 additions and 3 deletions
|
|
@ -810,9 +810,10 @@ void DatabaseWidget::switchToGroupEdit()
|
|||
switchToGroupEdit(group, false);
|
||||
}
|
||||
|
||||
void DatabaseWidget::switchToMasterKeyChange()
|
||||
void DatabaseWidget::switchToMasterKeyChange(bool disableCancel)
|
||||
{
|
||||
m_changeMasterKeyWidget->clearForms();
|
||||
m_changeMasterKeyWidget->setCancelEnabled(!disableCancel);
|
||||
setCurrentWidget(m_changeMasterKeyWidget);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue