aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowServerSlotFunction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/main_window/MainWindowServerSlotFunction.cpp')
-rw-r--r--src/ui/main_window/MainWindowServerSlotFunction.cpp4
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;