aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/settings/SettingsGeneral.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-08-29 10:49:58 +0000
committerSaturneric <[email protected]>2021-08-29 10:49:58 +0000
commitdaaa83549d42395161e34a40e18c3615801b1501 (patch)
tree7ae4c67a31e9eea8a7bda4719fbdac3ac2e730a9 /src/ui/settings/SettingsGeneral.cpp
parentUpdate version settings. (diff)
downloadGpgFrontend-daaa83549d42395161e34a40e18c3615801b1501.tar.gz
GpgFrontend-daaa83549d42395161e34a40e18c3615801b1501.zip
Start to rewrite gpg core.
Diffstat (limited to 'src/ui/settings/SettingsGeneral.cpp')
-rw-r--r--src/ui/settings/SettingsGeneral.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/settings/SettingsGeneral.cpp b/src/ui/settings/SettingsGeneral.cpp
index bec66154..666556a0 100644
--- a/src/ui/settings/SettingsGeneral.cpp
+++ b/src/ui/settings/SettingsGeneral.cpp
@@ -28,7 +28,7 @@
#include "rapidjson/prettywriter.h"
-GeneralTab::GeneralTab(GpgME::GpgContext *ctx, QWidget *parent)
+GeneralTab::GeneralTab(GpgFrontend::GpgContext *ctx, QWidget *parent)
: QWidget(parent), appPath(qApp->applicationDirPath()),
settings(RESOURCE_DIR(appPath) + "/conf/gpgfrontend.ini",
QSettings::IniFormat) {
@@ -104,7 +104,7 @@ GeneralTab::GeneralTab(GpgME::GpgContext *ctx, QWidget *parent)
keyIds.insert("", tr("<none>"));
for (const auto &keyid : *mKeyList->getAllPrivateKeys()) {
- auto key = mCtx->getKeyById(keyid);
+ auto key = mCtx->getKeyRefById(keyid);
if (!key.good) continue;
keyIds.insert(key.id, key.uids.first().uid);
}
@@ -260,7 +260,7 @@ void GeneralTab::slotGetServiceToken() {
QByteArray keyDataBuf;
mCtx->exportKeys(&selectedKeyIds, &keyDataBuf);
- GpgKey key = mCtx->getKeyById(keyId);
+ GpgKey key = mCtx->getKeyRefById(keyId);
if (!key.good) {
QMessageBox::critical(this, tr("Error"),
@@ -341,7 +341,7 @@ void GeneralTab::slotGetServiceToken() {
QString serviceTokenTemp = utils->getDataValueStr("serviceToken");
QString fpr = utils->getDataValueStr("fpr");
- auto key = mCtx->getKeyByFpr(fpr);
+ auto key = mCtx->getKeyRefByFpr(fpr);
if (utils->checkServiceTokenFormat(serviceTokenTemp) && key.good) {
serviceToken = serviceTokenTemp;
qDebug() << "Get Service Token" << serviceToken;