From c3abd640fce26c3348d7563f9308720db596ff2f Mon Sep 17 00:00:00 2001 From: Christian Hohnstaedt Date: Mon, 2 Mar 2020 21:32:10 +0100 Subject: [PATCH] Fix certificate assignment importing a CA certificate Fix finding our unassigned certificates when importing a CA (issuerSqlId may be QVariant(int, 0) depending on the database) Reassign certs from an older CA to the imported one. --- lib/func.cpp | 2 +- lib/func.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/func.cpp b/lib/func.cpp index 8ccc6658..eb5e34a5 100644 --- a/lib/func.cpp +++ b/lib/func.cpp @@ -54,7 +54,7 @@ QString currentDB; -Passwd readPass(bool echo) +Passwd readPass() { Passwd pw; #if !defined(Q_OS_WIN32) diff --git a/lib/func.h b/lib/func.h index 7ce9205c..53537b07 100644 --- a/lib/func.h +++ b/lib/func.h @@ -38,7 +38,7 @@ class Validity; extern QString currentDB; -Passwd readPass(bool echo = false); +Passwd readPass(); QPixmap *loadImg(const char *name); int portable_app(); const QString getPrefix();