aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/key_generate/KeygenDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/dialog/key_generate/KeygenDialog.cpp')
-rw-r--r--src/ui/dialog/key_generate/KeygenDialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/dialog/key_generate/KeygenDialog.cpp b/src/ui/dialog/key_generate/KeygenDialog.cpp
index 7d29036f..0fd7b6c4 100644
--- a/src/ui/dialog/key_generate/KeygenDialog.cpp
+++ b/src/ui/dialog/key_generate/KeygenDialog.cpp
@@ -30,9 +30,9 @@
#include <qobject.h>
-#include "core/common/CoreCommonUtil.h"
#include "core/function/GlobalSettingStation.h"
#include "core/function/gpg/GpgKeyOpera.h"
+#include "core/utils/CacheUtils.h"
#include "dialog/WaitingDialog.h"
#include "ui/SignalStation.h"
@@ -141,8 +141,8 @@ void KeyGenDialog::slot_key_gen_accept() {
}
if (!use_pinentry_ && !gen_key_info_->IsNoPassPhrase()) {
- CoreCommonUtil::GetInstance()->SetTempCacheValue(
- "__key_passphrase", this->passphrase_edit_->text().toStdString());
+ SetTempCacheValue("__key_passphrase",
+ this->passphrase_edit_->text().toStdString());
}
GpgGenKeyResult result;
@@ -162,7 +162,7 @@ void KeyGenDialog::slot_key_gen_accept() {
dialog->close();
if (!use_pinentry_ && !gen_key_info_->IsNoPassPhrase()) {
- CoreCommonUtil::GetInstance()->ResetTempCacheValue("__key_passphrase");
+ ResetTempCacheValue("__key_passphrase");
}
SPDLOG_DEBUG("generate done");