aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/KeygenThread.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-05-26 14:53:51 +0000
committerSaturneric <[email protected]>2021-05-26 14:53:51 +0000
commit0739199b9e5a5bb0dc95efd309cc209a16ccea18 (patch)
tree1b9d87c3b4b57d3afef6353d2e2b79ccbf4fa3af /src/ui/KeygenThread.cpp
parentRemove the self-compiled GpgME package (diff)
downloadGpgFrontend-0739199b9e5a5bb0dc95efd309cc209a16ccea18.tar.gz
GpgFrontend-0739199b9e5a5bb0dc95efd309cc209a16ccea18.zip
Fix the error and adjust the way the pop-up window pops up after the key is generated.
Diffstat (limited to 'src/ui/KeygenThread.cpp')
-rw-r--r--src/ui/KeygenThread.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ui/KeygenThread.cpp b/src/ui/KeygenThread.cpp
index 20e37bb4..dcd8dd77 100644
--- a/src/ui/KeygenThread.cpp
+++ b/src/ui/KeygenThread.cpp
@@ -32,9 +32,7 @@ KeyGenThread::KeyGenThread(GenKeyInfo* keyGenParams, GpgME::GpgContext *ctx) {
void KeyGenThread::run() {
bool success = mCtx->generateKey(keyGenParams);
- if(success)
- QMessageBox::information(nullptr, tr("Success"), tr("New key created"));
- else
- QMessageBox::critical(nullptr, tr("Failure"), tr("Key generation failed"));
+
+ emit signalKeyGenerated(success);
}