From fdf48c8b5b240c93046b0cfc8d638bd696f9c80a Mon Sep 17 00:00:00 2001 From: Christian Hohnstaedt Date: Tue, 16 May 2023 08:20:49 +0200 Subject: [PATCH] PR #425: Refresh supported hashes after key generation There were 2 slots to trigger the switchHashAlgo() whenever the selected key or request changes. But their signature for automatic connect()ion was wrong. After fixing the methods signature, they are connected and get called whenever the keylist changes and especially, when a new key is inserted. --- widgets/NewX509.cpp | 4 ++-- widgets/NewX509.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/widgets/NewX509.cpp b/widgets/NewX509.cpp index 13cd8432..a7c4451f 100644 --- a/widgets/NewX509.cpp +++ b/widgets/NewX509.cpp @@ -614,12 +614,12 @@ void NewX509::on_reqSubChange_clicked() on_fromReqCB_clicked(); } -void NewX509::on_keyList_currentIndexChanged(const QString &) +void NewX509::on_keyList_currentIndexChanged(int) { switchHashAlgo(); } -void NewX509::on_reqList_currentIndexChanged(const QString &) +void NewX509::on_reqList_currentIndexChanged(int) { switchHashAlgo(); } diff --git a/widgets/NewX509.h b/widgets/NewX509.h index 3bf8363c..c898a761 100644 --- a/widgets/NewX509.h +++ b/widgets/NewX509.h @@ -123,8 +123,8 @@ class NewX509: public QDialog, public Ui::NewX509 public slots: void on_fromReqCB_clicked(); - void on_keyList_currentIndexChanged(const QString &); - void on_reqList_currentIndexChanged(const QString &); + void on_keyList_currentIndexChanged(int); + void on_reqList_currentIndexChanged(int); void newKeyDone(pki_key *nkey); void on_applyTime_clicked(); void on_editSubAlt_clicked();