diff --git a/lib/db_key.cpp b/lib/db_key.cpp index c7bf1ee5..8078618f 100644 --- a/lib/db_key.cpp +++ b/lib/db_key.cpp @@ -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())); }