aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/GpgContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpg/GpgContext.cpp')
-rw-r--r--src/gpg/GpgContext.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/gpg/GpgContext.cpp b/src/gpg/GpgContext.cpp
index 2834ced5..e94ce1ab 100644
--- a/src/gpg/GpgContext.cpp
+++ b/src/gpg/GpgContext.cpp
@@ -87,11 +87,10 @@ namespace GpgME {
check_pass = true;
if (!check_pass) {
- QMessageBox::critical(nullptr, tr("ENV Loading Failed"),
- tr("Gnupg is not installed correctly, please follow the ReadME instructions to install gnupg and then open GPGFrontend."));
- QCoreApplication::quit();
- exit(0);
- }
+ good = false;
+ return;
+ } else good = true;
+
/** Setting the output type must be done at the beginning */
/** think this means ascii-armor --> ? */
@@ -122,6 +121,10 @@ namespace GpgME {
mCtx = nullptr;
}
+ bool GpgContext::isGood() const {
+ return good;
+ }
+
/** Import Key from QByteArray
*
*/