diff options
author | Saturneric <[email protected]> | 2021-12-20 06:28:53 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-12-20 06:28:53 +0000 |
commit | ef1b42b53185e4b1ec841ab15bf6272cd2a99473 (patch) | |
tree | e19adff5f59579458235161c3a0d4c17e8cd625b /src/ui/UserInterfaceUtils.cpp | |
parent | Pass apple store automatic verification. (diff) | |
download | GpgFrontend-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.cpp | 9 |
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, |