From bec8f5e614884cb86e7f1c597b7a0767c99349d9 Mon Sep 17 00:00:00 2001 From: saturneric Date: Sun, 2 Feb 2025 19:43:46 +0100 Subject: refactor: rewrite subkey generate dialog and fix some issues discovered --- src/core/model/GpgKeyGenerateInfo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core/model/GpgKeyGenerateInfo.cpp') diff --git a/src/core/model/GpgKeyGenerateInfo.cpp b/src/core/model/GpgKeyGenerateInfo.cpp index fda6d09a..1493c3af 100644 --- a/src/core/model/GpgKeyGenerateInfo.cpp +++ b/src/core/model/GpgKeyGenerateInfo.cpp @@ -135,7 +135,9 @@ auto KeyGenerateInfo::GetSupportedSubkeyAlgo() -> QContainer { } KeyGenerateInfo::KeyGenerateInfo(bool is_subkey) - : subkey_(is_subkey), algo_(kNoneAlgo) {} + : subkey_(is_subkey), + algo_(kNoneAlgo), + expired_(QDateTime::currentDateTime().toLocalTime().addYears(2)) {} auto KeyGenerateInfo::SearchPrimaryKeyAlgo(const QString &algo_id) -> std::tuple { -- cgit v1.2.3