aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/settings/SettingsGeneral.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-11-28 04:35:01 +0000
committerSaturneric <[email protected]>2021-11-28 04:35:01 +0000
commitb5b3ba7b1dc52a8dbae2a3a6970b44ede827f060 (patch)
tree7dffd4f4e6684d078616d88999590b95e8a56410 /src/ui/settings/SettingsGeneral.cpp
parentUI Framework Modified. (diff)
downloadGpgFrontend-b5b3ba7b1dc52a8dbae2a3a6970b44ede827f060.tar.gz
GpgFrontend-b5b3ba7b1dc52a8dbae2a3a6970b44ede827f060.zip
Can be compiled with minimal UI support.
Diffstat (limited to 'src/ui/settings/SettingsGeneral.cpp')
-rw-r--r--src/ui/settings/SettingsGeneral.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/ui/settings/SettingsGeneral.cpp b/src/ui/settings/SettingsGeneral.cpp
index dab0bb5d..8ecb2213 100644
--- a/src/ui/settings/SettingsGeneral.cpp
+++ b/src/ui/settings/SettingsGeneral.cpp
@@ -22,15 +22,16 @@
*
*/
-#include "ui/SettingsDialog.h"
-
-#include "rapidjson/prettywriter.h"
+#include "SettingsGeneral.h"
#ifdef SERVER_SUPPORT
#include "server/ComUtils.h"
#endif
+
+#include "SettingsDialog.h"
#include "gpg/function/GpgKeyGetter.h"
-#include "ui/WaitingDialog.h"
+#include "rapidjson/prettywriter.h"
+#include "ui/widgets/KeyList.h"
namespace GpgFrontend::UI {
@@ -114,8 +115,7 @@ GeneralTab::GeneralTab(QWidget* parent)
for (const auto& keyid : *private_keys) {
auto key = GpgKeyGetter::GetInstance().GetKey(keyid);
- if (!key.good())
- continue;
+ if (!key.good()) continue;
keyIds.insert({key.id(), key.uids()->front().uid()});
}
for (const auto& k : keyIds) {
@@ -167,8 +167,7 @@ void GeneralTab::setSettings() {
serverList.append("service.gpgfrontend.pub");
serverList.append("localhost");
}
- for (const auto& s : serverList)
- serverSelectBox->addItem(s);
+ for (const auto& s : serverList) serverSelectBox->addItem(s);
qDebug() << "Current Gpgfrontend Server"
<< settings.value("general/currentGpgfrontendServer").toString();
@@ -241,9 +240,7 @@ void GeneralTab::applySettings() {
importConfirmationCheckBox->isChecked());
}
-void GeneralTab::slotLanguageChanged() {
- emit signalRestartNeeded(true);
-}
+void GeneralTab::slotLanguageChanged() { emit signalRestartNeeded(true); }
void GeneralTab::slotOwnKeyIdChanged() {
// Set ownKeyId to currently selected