Merge remote-tracking branch 'github/pr/96'

Closes #218
This commit is contained in:
Felix Geyer 2015-05-12 23:35:19 +02:00
commit 7e1faadd11

View File

@ -120,7 +120,10 @@ void ChangeMasterKeyWidget::generateKey()
FileKey fileKey;
QString 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);
}