aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/key_generate/KeygenDialog.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-01-27 15:51:27 +0000
committersaturneric <[email protected]>2025-01-27 15:51:27 +0000
commit5d2b02097eeb6ed166611a22cef66a8c56b7c997 (patch)
treed785a00dc2acbb8f6c5212eac6bdcebeb388b776 /src/ui/dialog/key_generate/KeygenDialog.cpp
parentfix: kill all gnupg daemons in a proper way (diff)
downloadGpgFrontend-5d2b02097eeb6ed166611a22cef66a8c56b7c997.tar.gz
GpgFrontend-5d2b02097eeb6ed166611a22cef66a8c56b7c997.zip
refactor: clean up code
Diffstat (limited to '')
-rw-r--r--src/ui/dialog/key_generate/KeygenDialog.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ui/dialog/key_generate/KeygenDialog.cpp b/src/ui/dialog/key_generate/KeygenDialog.cpp
index e29f6b64..c9006b0c 100644
--- a/src/ui/dialog/key_generate/KeygenDialog.cpp
+++ b/src/ui/dialog/key_generate/KeygenDialog.cpp
@@ -48,10 +48,7 @@ KeyGenDialog::KeyGenDialog(int channel, QWidget* parent)
new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
bool const longer_expiration_date =
- GlobalSettingStation::GetInstance()
- .GetSettings()
- .value("basic/longer_expiration_date", false)
- .toBool();
+ GetSettings().value("basic/longer_expiration_date", false).toBool();
max_date_time_ = longer_expiration_date
? QDateTime::currentDateTime().toLocalTime().addYears(30)
@@ -141,8 +138,7 @@ void KeyGenDialog::slot_key_gen_accept() {
}
}
- if (!GlobalSettingStation::GetInstance()
- .GetSettings()
+ if (!GetSettings()
.value("gnupg/use_pinentry_as_password_input_dialog",
QString::fromLocal8Bit(qgetenv("container")) != "flatpak")
.toBool() &&