aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/key_generate/KeygenDialog.cpp
diff options
context:
space:
mode:
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() &&