aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/keypair_details/KeyPairDetailTab.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/keypair_details/KeyPairDetailTab.cpp
parentUpdate version settings. (diff)
downloadGpgFrontend-daaa83549d42395161e34a40e18c3615801b1501.tar.gz
GpgFrontend-daaa83549d42395161e34a40e18c3615801b1501.zip
Start to rewrite gpg core.
Diffstat (limited to '')
-rw-r--r--src/ui/keypair_details/KeyPairDetailTab.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ui/keypair_details/KeyPairDetailTab.cpp b/src/ui/keypair_details/KeyPairDetailTab.cpp
index c0a2df99..1f5d4095 100644
--- a/src/ui/keypair_details/KeyPairDetailTab.cpp
+++ b/src/ui/keypair_details/KeyPairDetailTab.cpp
@@ -25,7 +25,7 @@
#include "ui/keypair_details/KeyPairDetailTab.h"
#include "ui/WaitingDialog.h"
-KeyPairDetailTab::KeyPairDetailTab(GpgME::GpgContext *ctx, const GpgKey &mKey, QWidget *parent) : mKey(mKey),
+KeyPairDetailTab::KeyPairDetailTab(GpgFrontend::GpgContext *ctx, const GpgKey &mKey, QWidget *parent) : mKey(mKey),
QWidget(parent) {
mCtx = ctx;
@@ -214,7 +214,7 @@ void KeyPairDetailTab::slotExportPrivateKey() {
return;
}
- auto key = mCtx->getKeyById(*keyid);
+ auto key = mCtx->getKeyRefById(*keyid);
if (!key.good) {
QMessageBox::critical(nullptr, tr("Error"), tr("Key Not Found."));
return;
@@ -279,13 +279,13 @@ void KeyPairDetailTab::slotRefreshKeyInfo() {
QString actualUsage;
QTextStream actual_usage_steam(&actualUsage);
- if (GpgME::GpgContext::checkIfKeyCanCert(mKey))
+ if (GpgFrontend::GpgContext::checkIfKeyCanCert(mKey))
actual_usage_steam << "Cert ";
- if (GpgME::GpgContext::checkIfKeyCanEncr(mKey))
+ if (GpgFrontend::GpgContext::checkIfKeyCanEncr(mKey))
actual_usage_steam << "Encr ";
- if (GpgME::GpgContext::checkIfKeyCanSign(mKey))
+ if (GpgFrontend::GpgContext::checkIfKeyCanSign(mKey))
actual_usage_steam << "Sign ";
- if (GpgME::GpgContext::checkIfKeyCanAuth(mKey))
+ if (GpgFrontend::GpgContext::checkIfKeyCanAuth(mKey))
actual_usage_steam << "Auth ";
actualUsageVarLabel->setText(actualUsage);