From daaa83549d42395161e34a40e18c3615801b1501 Mon Sep 17 00:00:00 2001 From: Saturneric Date: Sun, 29 Aug 2021 18:49:58 +0800 Subject: Start to rewrite gpg core. --- src/ui/FileEncryptionDialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ui/FileEncryptionDialog.cpp') diff --git a/src/ui/FileEncryptionDialog.cpp b/src/ui/FileEncryptionDialog.cpp index 23ec0b2a..55c8e5f0 100755 --- a/src/ui/FileEncryptionDialog.cpp +++ b/src/ui/FileEncryptionDialog.cpp @@ -24,7 +24,7 @@ #include "ui/FileEncryptionDialog.h" -FileEncryptionDialog::FileEncryptionDialog(GpgME::GpgContext *ctx, QStringList keyList, DialogAction action, +FileEncryptionDialog::FileEncryptionDialog(GpgFrontend::GpgContext *ctx, QStringList keyList, DialogAction action, QWidget *parent) : QDialog(parent), mAction(action), mCtx(ctx){ @@ -92,13 +92,13 @@ FileEncryptionDialog::FileEncryptionDialog(GpgME::GpgContext *ctx, QStringList k if(mAction == Encrypt) mKeyList->setFilter([](const GpgKey &key) -> bool { - if(!GpgME::GpgContext::checkIfKeyCanEncr(key)) return false; + if(!GpgFrontend::GpgContext::checkIfKeyCanEncr(key)) return false; else return true; }); if(mAction == Sign) mKeyList->setFilter([](const GpgKey &key) -> bool { - if(!GpgME::GpgContext::checkIfKeyCanSign(key)) return false; + if(!GpgFrontend::GpgContext::checkIfKeyCanSign(key)) return false; else return true; }); -- cgit v1.2.3