aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/UserInterfaceUtils.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-10-25 10:26:26 +0000
committersaturneric <[email protected]>2023-10-25 10:26:26 +0000
commit124929609eabff19359caad276a10f1026793c0f (patch)
treec743376267928e60291b4f14bd78bd2b76f955c7 /src/ui/UserInterfaceUtils.cpp
parentfeat: use rt listen publish event function in main windows' app version upgra... (diff)
downloadGpgFrontend-124929609eabff19359caad276a10f1026793c0f.tar.gz
GpgFrontend-124929609eabff19359caad276a10f1026793c0f.zip
fix: solve some code tidy issues
Diffstat (limited to 'src/ui/UserInterfaceUtils.cpp')
-rw-r--r--src/ui/UserInterfaceUtils.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ui/UserInterfaceUtils.cpp b/src/ui/UserInterfaceUtils.cpp
index e44eae4d..63a78873 100644
--- a/src/ui/UserInterfaceUtils.cpp
+++ b/src/ui/UserInterfaceUtils.cpp
@@ -44,7 +44,6 @@
#include "core/thread/TaskRunner.h"
#include "core/thread/TaskRunnerGetter.h"
#include "dialog/gnupg/GnuPGControllerDialog.h"
-#include "spdlog/spdlog.h"
#include "ui/SignalStation.h"
#include "ui/dialog/WaitingDialog.h"
#include "ui/struct/SettingsObject.h"
@@ -341,7 +340,6 @@ void CommonUtils::SlotImportKeyFromKeyServer(
std::string target_keyserver;
try {
- auto &settings = GlobalSettingStation::GetInstance().GetMainSettings();
SettingsObject key_server_json("key_server");
// get key servers from settings
@@ -351,7 +349,7 @@ void CommonUtils::SlotImportKeyFromKeyServer(
throw std::runtime_error("No key server configured");
}
- const int target_key_server_index =
+ const size_t target_key_server_index =
key_server_json.Check("default_server", 0);
if (target_key_server_index >= key_server_list.size()) {
throw std::runtime_error("default_server index out of range");