aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/KeyMgmt.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/KeyMgmt.cpp
parentUpdate version settings. (diff)
downloadGpgFrontend-daaa83549d42395161e34a40e18c3615801b1501.tar.gz
GpgFrontend-daaa83549d42395161e34a40e18c3615801b1501.zip
Start to rewrite gpg core.
Diffstat (limited to '')
-rwxr-xr-xsrc/ui/KeyMgmt.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/KeyMgmt.cpp b/src/ui/KeyMgmt.cpp
index 77f3b760..9f3665d3 100755
--- a/src/ui/KeyMgmt.cpp
+++ b/src/ui/KeyMgmt.cpp
@@ -26,7 +26,7 @@
#include <utility>
-KeyMgmt::KeyMgmt(GpgME::GpgContext *ctx, QWidget *parent) :
+KeyMgmt::KeyMgmt(GpgFrontend::GpgContext *ctx, QWidget *parent) :
QMainWindow(parent), appPath(qApp->applicationDirPath()),
settings(RESOURCE_DIR(appPath) + "/conf/gpgfrontend.ini", QSettings::IniFormat) {
mCtx = ctx;
@@ -251,7 +251,7 @@ void KeyMgmt::deleteKeysWithWarning(QStringList *uidList) {
}
QString keynames;
for (const auto &uid : *uidList) {
- auto key = mCtx->getKeyById(uid);
+ auto key = mCtx->getKeyRefById(uid);
if (!key.good) continue;
keynames.append(key.name);
keynames.append("<i> &lt;");
@@ -275,7 +275,7 @@ void KeyMgmt::slotShowKeyDetails() {
return;
}
- auto key = mCtx->getKeyById(mKeyList->getSelected()->first());
+ auto key = mCtx->getKeyRefById(mKeyList->getSelected()->first());
if (!key.good) {
QMessageBox::critical(nullptr, tr("Error"), tr("Key Not Found."));
@@ -291,7 +291,7 @@ void KeyMgmt::slotExportKeyToFile() {
delete keyArray;
return;
}
- auto key = mCtx->getKeyById(mKeyList->getSelected()->first());
+ auto key = mCtx->getKeyRefById(mKeyList->getSelected()->first());
if (!key.good) {
QMessageBox::critical(nullptr, tr("Error"), tr("Key Not Found."));
return;
@@ -339,7 +339,7 @@ void KeyMgmt::slotGenerateSubKey() {
tr("Please select one KeyPair before doing this operation."));
return;
}
- const auto key = mCtx->getKeyById(selectedList->first());
+ const auto key = mCtx->getKeyRefById(selectedList->first());
if (!key.good) {
QMessageBox::critical(nullptr, tr("Error"), tr("Key Not Found."));
return;