aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowServerSlotFunction.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-08-19 09:31:17 +0000
committerSaturneric <[email protected]>2021-08-19 09:31:17 +0000
commit3977f4d024fdbf676f14d51a6977d9f7e67965ee (patch)
treeebd475d48011e5bc8664bbcdd52661cc5f9313d0 /src/ui/main_window/MainWindowServerSlotFunction.cpp
parentBugs Fixed; Improve Functions; (diff)
downloadGpgFrontend-3977f4d024fdbf676f14d51a6977d9f7e67965ee.tar.gz
GpgFrontend-3977f4d024fdbf676f14d51a6977d9f7e67965ee.zip
Bugs Fixed; Code Modified;
Diffstat (limited to 'src/ui/main_window/MainWindowServerSlotFunction.cpp')
-rw-r--r--src/ui/main_window/MainWindowServerSlotFunction.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ui/main_window/MainWindowServerSlotFunction.cpp b/src/ui/main_window/MainWindowServerSlotFunction.cpp
index da52871b..ed660621 100644
--- a/src/ui/main_window/MainWindowServerSlotFunction.cpp
+++ b/src/ui/main_window/MainWindowServerSlotFunction.cpp
@@ -119,8 +119,7 @@ QString MainWindow::getCryptText(const QString &shortenCryptoText) {
QCryptographicHash sha_generator(QCryptographicHash::Sha256);
sha_generator.addData(cryptoText.toUtf8());
- if (serviceTokenFromServer == serviceToken &&
- sha_generator.result().toHex() == sha) {
+ if (sha_generator.result().toHex() == sha) {
return cryptoText;
} else QMessageBox::critical(this, tr("Error"), tr("Invalid short ciphertext"));
@@ -200,11 +199,9 @@ void MainWindow::shortenCryptText() {
QNetworkReply *reply = networkAccessManager->post(request, postData);
- auto dialog = new WaitingDialog(tr("Getting Scpt From Server"), this);
+ auto *dialog = new WaitingDialog(tr("Getting Scpt From Server"), this);
dialog->show();
-
while (reply->isRunning()) QApplication::processEvents();
-
dialog->close();
if (utils->checkServerReply(reply->readAll().constData())) {