mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-03 20:14:17 -04:00
Show inline message when unable to load the Key File.
This commit is contained in:
parent
3c4af1a194
commit
8fa070f01c
1 changed files with 4 additions and 4 deletions
|
@ -121,10 +121,10 @@ void ChangeMasterKeyWidget::generateKey()
|
||||||
if (m_ui->keyFileGroup->isChecked()) {
|
if (m_ui->keyFileGroup->isChecked()) {
|
||||||
FileKey fileKey;
|
FileKey fileKey;
|
||||||
QString errorMsg;
|
QString errorMsg;
|
||||||
if (!fileKey.load(m_ui->keyFileCombo->currentText(), &errorMsg)) {
|
QString fileKeyName = m_ui->keyFileCombo->currentText();
|
||||||
MessageBox::critical(this, tr("Failed to set key file"),
|
if (!fileKey.load(fileKeyName, &errorMsg)) {
|
||||||
tr("Failed to set %1 as the Key file:\n%2")
|
m_ui->messageWidget->showMessageError(
|
||||||
.arg(m_ui->keyFileCombo->currentText(), errorMsg));
|
tr("Failed to set %1 as the Key file:\n%2: ").arg(fileKeyName, errorMsg));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_key.addKey(fileKey);
|
m_key.addKey(fileKey);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue