mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
commit
7e1faadd11
@ -120,7 +120,10 @@ void ChangeMasterKeyWidget::generateKey()
|
|||||||
FileKey fileKey;
|
FileKey fileKey;
|
||||||
QString errorMsg;
|
QString errorMsg;
|
||||||
if (!fileKey.load(m_ui->keyFileCombo->currentText(), &errorMsg)) {
|
if (!fileKey.load(m_ui->keyFileCombo->currentText(), &errorMsg)) {
|
||||||
// TODO: error handling
|
MessageBox::critical(this, tr("Failed to set key file"),
|
||||||
|
tr("Failed to set %1 as the Key file:\n%2")
|
||||||
|
.arg(m_ui->keyFileCombo->currentText(), errorMsg));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
m_key.addKey(fileKey);
|
m_key.addKey(fileKey);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user