Really erase element after deleting

This commit is contained in:
Christian Hohnstaedt 2023-09-19 16:42:25 +02:00
parent dfb2489a78
commit 441bc8630d
2 changed files with 6 additions and 0 deletions

View File

@ -286,6 +286,8 @@ void db_base::deletePKI(QModelIndex idx)
remFromCont(idx);
AffectedItems(pki->getSqlItemId());
XCA_SQLERROR(e);
Store.remove(pki->getSqlItemId());
delete pki;
}
} catch (errorEx &err) {
XCA_ERROR(err);

View File

@ -41,6 +41,10 @@ class pki_lookup
{
add(id.toULongLong(), pki);
}
void remove(QVariant id)
{
lookup.remove(id.toULongLong());
}
void add(quint64 id, pki_base *pki)
{
if (id == 0)