diff options
author | Saturneric <[email protected]> | 2021-08-29 10:49:58 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-08-29 10:49:58 +0000 |
commit | daaa83549d42395161e34a40e18c3615801b1501 (patch) | |
tree | 7ae4c67a31e9eea8a7bda4719fbdac3ac2e730a9 /src/ui/main_window/MainWindowFileSlotFunction.cpp | |
parent | Update version settings. (diff) | |
download | GpgFrontend-daaa83549d42395161e34a40e18c3615801b1501.tar.gz GpgFrontend-daaa83549d42395161e34a40e18c3615801b1501.zip |
Start to rewrite gpg core.
Diffstat (limited to '')
-rw-r--r-- | src/ui/main_window/MainWindowFileSlotFunction.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/main_window/MainWindowFileSlotFunction.cpp b/src/ui/main_window/MainWindowFileSlotFunction.cpp index e391c666..eff84fcf 100644 --- a/src/ui/main_window/MainWindowFileSlotFunction.cpp +++ b/src/ui/main_window/MainWindowFileSlotFunction.cpp @@ -64,7 +64,7 @@ void MainWindow::slotFileEncrypt() { } for (const auto &key : keys) { - if (!GpgME::GpgContext::checkIfKeyCanEncr(key)) { + if (!GpgFrontend::GpgContext::checkIfKeyCanEncr(key)) { QMessageBox::information(this, tr("Invalid Operation"), tr("The selected key contains a key that does not actually have a encrypt usage.<br/>") @@ -241,7 +241,7 @@ void MainWindow::slotFileSign() { } for (const auto &key : keys) { - if (!GpgME::GpgContext::checkIfKeyCanEncr(key)) { + if (!GpgFrontend::GpgContext::checkIfKeyCanEncr(key)) { QMessageBox::information(this, tr("Invalid Operation"), tr("The selected key contains a key that does not actually have a encrypt usage.<br/>") @@ -426,8 +426,8 @@ void MainWindow::slotFileEncryptSign() { bool can_sign = false, can_encr = false; for (const auto &key : keys) { - bool key_can_sign = GpgME::GpgContext::checkIfKeyCanSign(key); - bool key_can_encr = GpgME::GpgContext::checkIfKeyCanEncr(key); + bool key_can_sign = GpgFrontend::GpgContext::checkIfKeyCanSign(key); + bool key_can_encr = GpgFrontend::GpgContext::checkIfKeyCanEncr(key); if (!key_can_sign && !key_can_encr) { QMessageBox::critical(nullptr, |