aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/GpgContext.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-07-05 19:51:44 +0000
committerSaturneric <[email protected]>2021-07-05 19:51:44 +0000
commitc8cbfb2e8638691e4028d889dcb3222064b19339 (patch)
tree86538afc364b8d0b375b4b94282d1613427ab617 /src/gpg/GpgContext.cpp
parentIntroduce multithreading. (diff)
downloadGpgFrontend-c8cbfb2e8638691e4028d889dcb3222064b19339.tar.gz
GpgFrontend-c8cbfb2e8638691e4028d889dcb3222064b19339.zip
Improve large file reading.
Add loading animation. Other improvements.
Diffstat (limited to '')
-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
*
*/