aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/settings/SettingsKeyServer.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-16 03:49:50 +0000
committersaturneric <[email protected]>2024-01-16 03:49:50 +0000
commit4994f4eaa1211d402b791660ad6221154a4c2405 (patch)
treec3f0cdc0008849de79c6bd8030c0c65c5d02f9f3 /src/ui/dialog/settings/SettingsKeyServer.cpp
parentfix: slove a heap-use-after-free problem (diff)
downloadGpgFrontend-4994f4eaa1211d402b791660ad6221154a4c2405.tar.gz
GpgFrontend-4994f4eaa1211d402b791660ad6221154a4c2405.zip
fix: make task and threading system safer
Diffstat (limited to 'src/ui/dialog/settings/SettingsKeyServer.cpp')
-rw-r--r--src/ui/dialog/settings/SettingsKeyServer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/dialog/settings/SettingsKeyServer.cpp b/src/ui/dialog/settings/SettingsKeyServer.cpp
index 83e3758b..d51ba1af 100644
--- a/src/ui/dialog/settings/SettingsKeyServer.cpp
+++ b/src/ui/dialog/settings/SettingsKeyServer.cpp
@@ -240,8 +240,8 @@ void KeyserverTab::slot_test_listed_key_server() {
ui_->keyServerListTable->blockSignals(true);
for (size_t i = 0; i < row_size; i++) {
const auto status = result[i];
- auto status_iem = ui_->keyServerListTable->item(i, 3);
- if (status == ListedKeyServerTestTask::kTestResultType_Success) {
+ auto* status_iem = ui_->keyServerListTable->item(i, 3);
+ if (status == ListedKeyServerTestTask::kTEST_RESULT_TYPE_SUCCESS) {
status_iem->setText(_("Reachable"));
status_iem->setForeground(QBrush(QColor::fromRgb(0, 255, 0)));
} else {
@@ -256,7 +256,7 @@ void KeyserverTab::slot_test_listed_key_server() {
auto* waiting_dialog = new QProgressDialog(this);
waiting_dialog->setMaximum(0);
waiting_dialog->setMinimum(0);
- auto waiting_dialog_label =
+ auto* waiting_dialog_label =
new QLabel(QString(_("Test Key Server Connection...")) + "<br /><br />" +
_("This test only tests the network connectivity of the key "
"server. Passing the test does not mean that the key server "