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/MainWindowServerSlotFunction.cpp | |
parent | Update version settings. (diff) | |
download | GpgFrontend-daaa83549d42395161e34a40e18c3615801b1501.tar.gz GpgFrontend-daaa83549d42395161e34a40e18c3615801b1501.zip |
Start to rewrite gpg core.
Diffstat (limited to 'src/ui/main_window/MainWindowServerSlotFunction.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowServerSlotFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/main_window/MainWindowServerSlotFunction.cpp b/src/ui/main_window/MainWindowServerSlotFunction.cpp index 3a7e9f71..dbbf178a 100644 --- a/src/ui/main_window/MainWindowServerSlotFunction.cpp +++ b/src/ui/main_window/MainWindowServerSlotFunction.cpp @@ -38,7 +38,7 @@ QString MainWindow::getCryptText(const QString &shortenCryptoText) { QString ownKeyId = settings.value("general/ownKeyId").toString(); - GpgKey key = mCtx->getKeyById(ownKeyId); + GpgKey key = mCtx->getKeyRefById(ownKeyId); if (!key.good) { QMessageBox::critical(this, tr("Invalid Own Key"), tr("Own Key can not be use to do any operation. " @@ -149,7 +149,7 @@ void MainWindow::shortenCryptText() { QNetworkRequest request(reqUrl); request.setHeader(QNetworkRequest::ContentTypeHeader, "application/json"); - GpgKey key = mCtx->getKeyById(ownKeyId); + GpgKey key = mCtx->getKeyRefById(ownKeyId); if (!key.good) { QMessageBox::critical(this, tr("Invalid Own Key"), tr("Own Key can not be use to do any operation.")); return; |