aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/UserInterfaceUtils.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-12-20 06:28:53 +0000
committerSaturneric <[email protected]>2021-12-20 06:28:53 +0000
commitef1b42b53185e4b1ec841ab15bf6272cd2a99473 (patch)
treee19adff5f59579458235161c3a0d4c17e8cd625b /src/ui/UserInterfaceUtils.cpp
parentPass apple store automatic verification. (diff)
downloadGpgFrontend-ef1b42b53185e4b1ec841ab15bf6272cd2a99473.tar.gz
GpgFrontend-ef1b42b53185e4b1ec841ab15bf6272cd2a99473.zip
Fixed bugs.
1. Not not paint in main thread.
Diffstat (limited to 'src/ui/UserInterfaceUtils.cpp')
-rw-r--r--src/ui/UserInterfaceUtils.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/UserInterfaceUtils.cpp b/src/ui/UserInterfaceUtils.cpp
index 0931a179..581eabda 100644
--- a/src/ui/UserInterfaceUtils.cpp
+++ b/src/ui/UserInterfaceUtils.cpp
@@ -151,6 +151,15 @@ CommonUtils* CommonUtils::GetInstance() {
CommonUtils::CommonUtils() : QWidget(nullptr) {
connect(this, SIGNAL(signalKeyStatusUpdated()), SignalStation::GetInstance(),
SIGNAL(KeyDatabaseRefresh()));
+ connect(this, &CommonUtils::signalGnupgNotInstall, this, []() {
+ QMessageBox::critical(
+ nullptr, _("ENV Loading Failed"),
+ _("Gnupg(gpg) is not installed correctly, please follow the "
+ "ReadME "
+ "instructions in Github to install Gnupg and then open "
+ "GpgFrontend."));
+ QCoreApplication::quit();
+ });
}
void CommonUtils::slotImportKeys(QWidget* parent,