diff --git a/lib/db_base.cpp b/lib/db_base.cpp index da3851a7..215d9300 100644 --- a/lib/db_base.cpp +++ b/lib/db_base.cpp @@ -296,7 +296,6 @@ void db_base::inToCont(pki_base *pki) pki_base *db_base::getByName(QString desc) { - if (desc == "" ) return NULL; FOR_ALL_pki(pki, pki_base) { if (pki->getIntName() == desc) return pki; diff --git a/lib/db_x509.cpp b/lib/db_x509.cpp index 548a1a62..efb3290a 100644 --- a/lib/db_x509.cpp +++ b/lib/db_x509.cpp @@ -390,6 +390,8 @@ void db_x509::newCert(NewX509 *dlg) // Step 1 - Subject and key if (!dlg->fromReqCB->isChecked()) { clientkey = dlg->getSelectedKey(); + if (!clientkey) + return; subject = dlg->getX509name(); intname = dlg->description->text(); } diff --git a/ui/ImportMulti.ui b/ui/ImportMulti.ui index 22dc9dfe..fb98b58f 100644 --- a/ui/ImportMulti.ui +++ b/ui/ImportMulti.ui @@ -111,5 +111,22 @@ - + + + butCancel + clicked() + ImportMulti + accept() + + + 373 + 131 + + + 287 + 358 + + + +