aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/settings/SettingsDialog.cpp
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2022-05-08 13:14:24 +0000
committerGitHub <[email protected]>2022-05-08 13:14:24 +0000
commitf722eec9a898c97e233619a50f6f1a94fef6f94c (patch)
tree26757206ff3e139a10968bd8ae6147ca1a1182a7 /src/ui/settings/SettingsDialog.cpp
parentMerge pull request #50 from saturneric/develop-2.0.5 (diff)
parentdoc: update translate document. (diff)
downloadGpgFrontend-f722eec9a898c97e233619a50f6f1a94fef6f94c.tar.gz
GpgFrontend-f722eec9a898c97e233619a50f6f1a94fef6f94c.zip
Merge pull request #54 from saturneric/develop-2.0.6v2.0.6
Develop 2.0.6
Diffstat (limited to 'src/ui/settings/SettingsDialog.cpp')
-rw-r--r--src/ui/settings/SettingsDialog.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/ui/settings/SettingsDialog.cpp b/src/ui/settings/SettingsDialog.cpp
index 2c23858f..bf3ce6a8 100644
--- a/src/ui/settings/SettingsDialog.cpp
+++ b/src/ui/settings/SettingsDialog.cpp
@@ -36,36 +36,19 @@
#include "ui/settings/SettingsNetwork.h"
#include "ui/main_window/MainWindow.h"
-#ifdef SMTP_SUPPORT
-#include "ui/settings/SettingsSendMail.h"
-#endif
-
namespace GpgFrontend::UI {
SettingsDialog::SettingsDialog(QWidget* parent) : QDialog(parent) {
tab_widget_ = new QTabWidget();
general_tab_ = new GeneralTab();
appearance_tab_ = new AppearanceTab();
-#ifdef SMTP_SUPPORT
- send_mail_tab_ = new SendMailTab();
-#endif
key_server_tab_ = new KeyserverTab();
network_tab_ = new NetworkTab();
-#ifdef ADVANCED_SUPPORT
- advancedTab = new AdvancedTab;
-#endif
tab_widget_->addTab(general_tab_, _("General"));
tab_widget_->addTab(appearance_tab_, _("Appearance"));
-#ifdef SMTP_SUPPORT
- tab_widget_->addTab(send_mail_tab_, _("Send Mail"));
-#endif
tab_widget_->addTab(key_server_tab_, _("Key Server"));
- // tabWidget->addTab(gpgPathsTab, _("Gpg paths"));
tab_widget_->addTab(network_tab_, _("Network"));
-#ifdef ADVANCED_SUPPORT
- tabWidget->addTab(advancedTab, _("Advanced"));
-#endif
button_box_ =
new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
@@ -105,15 +88,9 @@ void SettingsDialog::SlotAccept() {
LOG(INFO) << "Called";
general_tab_->ApplySettings();
-#ifdef SMTP_SUPPORT
- send_mail_tab_->ApplySettings();
-#endif
appearance_tab_->ApplySettings();
key_server_tab_->ApplySettings();
network_tab_->ApplySettings();
-#ifdef ADVANCED_SUPPORT
- advancedTab->applySettings();
-#endif
LOG(INFO) << "apply done";