aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/VerifyKeyDetailBox.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-15 17:02:40 +0000
committersaturneric <[email protected]>2024-01-15 17:02:40 +0000
commitd54f52ce70cba15f5199e93d3c6fb122143b0526 (patch)
treef75224f8d020c4c7498bd1ffb97c834e12ec8a2c /src/ui/widgets/VerifyKeyDetailBox.cpp
parentfix: clean up useless code and make life easier (diff)
downloadGpgFrontend-d54f52ce70cba15f5199e93d3c6fb122143b0526.tar.gz
GpgFrontend-d54f52ce70cba15f5199e93d3c6fb122143b0526.zip
refactor: remove libconfig++ form project
Diffstat (limited to 'src/ui/widgets/VerifyKeyDetailBox.cpp')
-rw-r--r--src/ui/widgets/VerifyKeyDetailBox.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/widgets/VerifyKeyDetailBox.cpp b/src/ui/widgets/VerifyKeyDetailBox.cpp
index a2c130ad..db81ffa8 100644
--- a/src/ui/widgets/VerifyKeyDetailBox.cpp
+++ b/src/ui/widgets/VerifyKeyDetailBox.cpp
@@ -45,8 +45,10 @@ VerifyKeyDetailBox::VerifyKeyDetailBox(const GpgSignature& signature,
this->setTitle("A Error Signature");
bool forbid_all_gnupg_connection =
- GlobalSettingStation::GetInstance().LookupSettings(
- "network.forbid_all_gnupg_connection", false);
+ GlobalSettingStation::GetInstance()
+ .GetSettings()
+ .value("network/forbid_all_gnupg_connection", false)
+ .toBool();
auto* import_button = new QPushButton(_("Import from keyserver"));
import_button->setDisabled(forbid_all_gnupg_connection);