diff options
author | Saturneric <[email protected]> | 2021-08-15 15:00:19 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-08-15 15:00:19 +0000 |
commit | 805f8b2f36007317a750cf6aecb633ad6ad2d4e4 (patch) | |
tree | 830b8c558dcb162c49d8609685e5c152a15afcfc /src/ui/main_window/MainWindowServerSlotFunction.cpp | |
parent | Beautify UI; Improve Functions; (diff) | |
download | GpgFrontend-805f8b2f36007317a750cf6aecb633ad6ad2d4e4.tar.gz GpgFrontend-805f8b2f36007317a750cf6aecb633ad6ad2d4e4.zip |
Bugs Fixed; Improve Functions;
Diffstat (limited to 'src/ui/main_window/MainWindowServerSlotFunction.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowServerSlotFunction.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ui/main_window/MainWindowServerSlotFunction.cpp b/src/ui/main_window/MainWindowServerSlotFunction.cpp index e7dfab03..da52871b 100644 --- a/src/ui/main_window/MainWindowServerSlotFunction.cpp +++ b/src/ui/main_window/MainWindowServerSlotFunction.cpp @@ -86,7 +86,7 @@ QString MainWindow::getCryptText(const QString &shortenCryptoText) { QNetworkReply *reply = networkAccessManager->post(request, postData); - auto dialog = new WaitingDialog("Getting Crypt Text From Server", this); + auto dialog = new WaitingDialog(tr("Getting Cpt From Server"), this); dialog->show(); while (reply->isRunning()) QApplication::processEvents(); @@ -200,8 +200,13 @@ void MainWindow::shortenCryptText() { QNetworkReply *reply = networkAccessManager->post(request, postData); + 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())) { /** @@ -222,7 +227,7 @@ void MainWindow::shortenCryptText() { QCryptographicHash md5_generator(QCryptographicHash::Md5); md5_generator.addData(shortenText.toUtf8()); if (md5_generator.result().toHex() == utils->getDataValue("md5")) { - auto *dialog = new ShowCopyDialog(shortenText, this); + auto *dialog = new ShowCopyDialog(shortenText, tr("Notice: Use Decrypt & Verify operation to decrypt this short crypto text."), this); dialog->show(); } else { QMessageBox::critical(this, tr("Error"), tr("There is a problem with the communication with the server")); |