aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowUI.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-12-16 11:08:16 +0000
committerSaturneric <[email protected]>2021-12-16 11:08:16 +0000
commite4f4eda6fe1e9012303798ab5e851fb829c68c37 (patch)
treea64c31577669c93e11b8932670d19d448d44d947 /src/ui/main_window/MainWindowUI.cpp
parentAdded and Fixed Translation. (diff)
downloadGpgFrontend-e4f4eda6fe1e9012303798ab5e851fb829c68c37.tar.gz
GpgFrontend-e4f4eda6fe1e9012303798ab5e851fb829c68c37.zip
Fixed Project Configure.
Diffstat (limited to 'src/ui/main_window/MainWindowUI.cpp')
-rw-r--r--src/ui/main_window/MainWindowUI.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/main_window/MainWindowUI.cpp b/src/ui/main_window/MainWindowUI.cpp
index c33407f3..0c557d16 100644
--- a/src/ui/main_window/MainWindowUI.cpp
+++ b/src/ui/main_window/MainWindowUI.cpp
@@ -296,12 +296,14 @@ void MainWindow::createActions() {
addPgpHeaderAct = new QAction(_("Add PGP Header"), this);
connect(addPgpHeaderAct, SIGNAL(triggered()), this, SLOT(slotAddPgpHeader()));
+#ifdef SMTP_SUPPORT
sendMailAct = new QAction(_("Send An Email"), this);
sendMailAct->setIcon(QIcon(":email.png"));
connect(sendMailAct, &QAction::triggered, this, [=]() {
auto* dialog = new SendMailDialog({}, this);
dialog->show();
});
+#endif
}
void MainWindow::createMenus() {
@@ -358,9 +360,10 @@ void MainWindow::createMenus() {
steganoMenu = menuBar()->addMenu(_("Steganography"));
steganoMenu->addAction(cutPgpHeaderAct);
steganoMenu->addAction(addPgpHeaderAct);
-
+#ifdef SMTP_SUPPORT
emailMenu = menuBar()->addMenu(_("Email"));
emailMenu->addAction(sendMailAct);
+#endif
#ifdef ADVANCED_SUPPORT
// Hide menu, when steganography menu is disabled in settings