Document in the comment if a public key has been completed by an imported private one

This commit is contained in:
Christian Hohnstaedt 2018-03-06 16:42:28 +01:00
parent f1cf3aeab1
commit 5ef451ee91

View File

@ -122,10 +122,13 @@ pki_base* db_key::insert(pki_base *item)
tr("The key is already in the database as:\n'%1'\nand is not going to be imported").arg(oldkey->getIntName()));
delete(lkey);
return NULL;
}
else {
} else {
XCA_INFO(
tr("The database already contains the public part of the imported key as\n'%1\nand will be completed by the new, private part of the key").arg(oldkey->getIntName()));
lkey->setComment(oldkey->getComment() + "\n" +
tr("Extending public key from %1 by %2")
.arg(oldkey->getInsertionDate().toPretty())
.arg(lkey->getIntName()));
lkey->setIntName(oldkey->getIntName());
deletePKI(index(oldkey->row(), 0, QModelIndex()));
}