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/MainWindowSlotFunction.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/MainWindowSlotFunction.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowSlotFunction.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ui/main_window/MainWindowSlotFunction.cpp b/src/ui/main_window/MainWindowSlotFunction.cpp index ac998f3d..48a94fa6 100644 --- a/src/ui/main_window/MainWindowSlotFunction.cpp +++ b/src/ui/main_window/MainWindowSlotFunction.cpp @@ -63,7 +63,7 @@ void MainWindow::slotEncrypt() { auto thread = QThread::create([&]() { error = mCtx->encrypt(keys, edit->curTextPage()->toPlainText().toUtf8(), tmp, &result); }); - connect(thread, SIGNAL(finished(QPrivateSignal)), thread, SLOT(deleteLater())); + connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater())); thread->start(); auto *dialog = new WaitingDialog(tr("Encrypting"), this); @@ -142,7 +142,7 @@ void MainWindow::slotSign() { auto thread = QThread::create([&]() { error = mCtx->sign(keys, edit->curTextPage()->toPlainText().toUtf8(), tmp, GPGME_SIG_MODE_CLEAR, &result); }); - connect(thread, SIGNAL(finished(QPrivateSignal)), thread, SLOT(deleteLater())); + connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater())); thread->start(); auto *dialog = new WaitingDialog(tr("Signing"), this); @@ -191,7 +191,7 @@ void MainWindow::slotDecrypt() { // try decrypt, if fail do nothing, especially don't replace text error = mCtx->decrypt(text, decrypted, &result); }); - connect(thread, SIGNAL(finished(QPrivateSignal)), thread, SLOT(deleteLater())); + connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater())); thread->start(); auto *dialog = new WaitingDialog(tr("Decrypting"), this); @@ -244,14 +244,13 @@ void MainWindow::slotVerify() { QByteArray text = edit->curTextPage()->toPlainText().toUtf8(); GpgME::GpgContext::preventNoDataErr(&text); - gpgme_verify_result_t result; gpgme_error_t error; auto thread = QThread::create([&]() { error = mCtx->verify(&text, nullptr, &result); }); - connect(thread, SIGNAL(finished(QPrivateSignal)), thread, SLOT(deleteLater())); + connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater())); thread->start(); auto *dialog = new WaitingDialog(tr("Verifying"), this); @@ -338,7 +337,7 @@ void MainWindow::slotEncryptSign() { error = mCtx->encryptSign(keys, edit->curTextPage()->toPlainText().toUtf8(), tmp, &encr_result, &sign_result); }); - connect(thread, SIGNAL(finished(QPrivateSignal)), thread, SLOT(deleteLater())); + connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater())); thread->start(); auto *dialog = new WaitingDialog(tr("Encrypting and Signing"), this); @@ -424,7 +423,7 @@ void MainWindow::slotDecryptVerify() { auto thread = QThread::create([&]() { error = mCtx->decryptVerify(text, decrypted, &d_result, &v_result); }); - connect(thread, SIGNAL(finished(QPrivateSignal)), thread, SLOT(deleteLater())); + connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater())); thread->start(); auto *dialog = new WaitingDialog(tr("Decrypting and Verifying"), this); |