aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/help
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/dialog/help')
-rw-r--r--src/ui/dialog/help/AboutDialog.cpp9
-rw-r--r--src/ui/dialog/help/GnupgTab.cpp10
2 files changed, 8 insertions, 11 deletions
diff --git a/src/ui/dialog/help/AboutDialog.cpp b/src/ui/dialog/help/AboutDialog.cpp
index e38777f3..6f8dedc2 100644
--- a/src/ui/dialog/help/AboutDialog.cpp
+++ b/src/ui/dialog/help/AboutDialog.cpp
@@ -121,10 +121,8 @@ InfoTab::InfoTab(QWidget* parent) : QWidget(parent) {
}
TranslatorsTab::TranslatorsTab(QWidget* parent) : QWidget(parent) {
- QFile translators_qfile;
- auto translators_file =
- GlobalSettingStation::GetInstance().GetResourceDir() / "TRANSLATORS";
- translators_qfile.setFileName(translators_file);
+ QFile translators_qfile(GlobalSettingStation::GetInstance().GetResourceDir() +
+ "/TRANSLATORS");
#ifdef LINUX
if (!translators_qfile.exists()) {
translators_qfile.setFileName("/usr/local/share/GpgFrontend/TRANSLATORS");
@@ -143,8 +141,7 @@ TranslatorsTab::TranslatorsTab(QWidget* parent) : QWidget(parent) {
auto* notice_label = new QLabel(
_("If you think there are any problems with the translation, why not "
"participate in the translation work? If you want to participate, "
- "please "
- "read the document or contact me via email."),
+ "please read the document or contact me via email."),
this);
notice_label->setWordWrap(true);
main_layout->addWidget(notice_label);
diff --git a/src/ui/dialog/help/GnupgTab.cpp b/src/ui/dialog/help/GnupgTab.cpp
index ed47c38c..9749877f 100644
--- a/src/ui/dialog/help/GnupgTab.cpp
+++ b/src/ui/dialog/help/GnupgTab.cpp
@@ -101,7 +101,7 @@ void GpgFrontend::UI::GnupgTab::process_software_info() {
for (auto& component : components) {
auto component_info_json = Module::RetrieveRTValueTypedOrDefault(
"com.bktus.gpgfrontend.module.integrated.gnupg-info-gathering",
- QString("gnupg.components.%1%").arg(component), QString{});
+ QString("gnupg.components.%1").arg(component), QString{});
GF_UI_LOG_DEBUG("got gnupg component {} info from rt, info: {}", component,
component_info_json);
@@ -148,12 +148,12 @@ void GpgFrontend::UI::GnupgTab::process_software_info() {
for (auto& component : components) {
auto options = Module::ListRTChildKeys(
"com.bktus.gpgfrontend.module.integrated.gnupg-info-gathering",
- QString("gnupg.components.%1%.options").arg(component));
+ QString("gnupg.components.%1.options").arg(component));
for (auto& option : options) {
const auto option_info = nlohmann::json::parse(
Module::RetrieveRTValueTypedOrDefault(
"com.bktus.gpgfrontend.module.integrated.gnupg-info-gathering",
- QString("gnupg.components.%1%.options.%2%")
+ QString("gnupg.components.%1.options.%2")
.arg(component)
.arg(option),
QString{})
@@ -172,12 +172,12 @@ void GpgFrontend::UI::GnupgTab::process_software_info() {
for (auto& component : components) {
auto options = Module::ListRTChildKeys(
"com.bktus.gpgfrontend.module.integrated.gnupg-info-gathering",
- QString("gnupg.components.%1%.options").arg(component));
+ QString("gnupg.components.%1.options").arg(component));
for (auto& option : options) {
auto option_info_json = Module::RetrieveRTValueTypedOrDefault(
"com.bktus.gpgfrontend.module.integrated.gnupg-info-gathering",
- QString("gnupg.components.%1%.options.%2%")
+ QString("gnupg.components.%1.options.%2")
.arg(component)
.arg(option),
QString{});