aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/UserInterfaceUtils.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-04 12:31:36 +0000
committersaturneric <[email protected]>2023-12-04 12:31:36 +0000
commitde05b25e0b8078d5c9d91b31ad5fc2800ad4b6a5 (patch)
tree3aa6c351835018697d0711503dab4159226cf8af /src/ui/UserInterfaceUtils.cpp
parentfix: slove logger system isolation issues (diff)
downloadGpgFrontend-de05b25e0b8078d5c9d91b31ad5fc2800ad4b6a5.tar.gz
GpgFrontend-de05b25e0b8078d5c9d91b31ad5fc2800ad4b6a5.zip
fix: common utils should be created before core initialization
Diffstat (limited to 'src/ui/UserInterfaceUtils.cpp')
-rw-r--r--src/ui/UserInterfaceUtils.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ui/UserInterfaceUtils.cpp b/src/ui/UserInterfaceUtils.cpp
index 6f4ca7d0..7c42e86d 100644
--- a/src/ui/UserInterfaceUtils.cpp
+++ b/src/ui/UserInterfaceUtils.cpp
@@ -185,9 +185,9 @@ CommonUtils::CommonUtils() : QWidget(nullptr) {
&CommonUtils::SlotRestartApplication);
connect(this, &CommonUtils::SignalBadGnupgEnv, this, [=]() {
- QMessageBox msgBox;
- msgBox.setText(_("GnuPG Context Loading Failed"));
- msgBox.setInformativeText(
+ QMessageBox msg_box;
+ msg_box.setText(_("GnuPG Context Loading Failed"));
+ msg_box.setInformativeText(
_("Gnupg(gpg) is not installed correctly, please follow "
"<a href='https://www.gpgfrontend.bktus.com/#/"
"faq?id=how-to-deal-with-39env-loading-failed39'>this notes</a>"
@@ -195,9 +195,9 @@ CommonUtils::CommonUtils() : QWidget(nullptr) {
"GpgFrontend. Or, you can open GnuPG Controller to set a custom "
"GnuPG "
"which GpgFrontend should use. Then, GpgFrontend will restart."));
- msgBox.setStandardButtons(QMessageBox::Open | QMessageBox::Cancel);
- msgBox.setDefaultButton(QMessageBox::Save);
- int ret = msgBox.exec();
+ msg_box.setStandardButtons(QMessageBox::Open | QMessageBox::Cancel);
+ msg_box.setDefaultButton(QMessageBox::Save);
+ int ret = msg_box.exec();
switch (ret) {
case QMessageBox::Open: