mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
Really erase element after deleting
This commit is contained in:
parent
dfb2489a78
commit
441bc8630d
@ -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);
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user