summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index e1b9d3e4f..5b4e9b43d 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -38,6 +38,9 @@
#include "about.h"
#include "printdialog.h"
#include "divelogimportdialog.h"
+#ifndef NO_USERMANUAL
+#include "usermanual.h"
+#endif
MainWindow *MainWindow::m_Instance = NULL;
@@ -85,6 +88,9 @@ MainWindow::MainWindow() : QMainWindow(),
ui.layoutWidget->hide();
ui.menuView->removeAction(ui.actionViewGlobe);
#endif
+#ifdef NO_USERMANUAL
+ ui.menuHelp->removeAction(ui.actionUserManual);
+#endif
}
MainWindow::~MainWindow()
@@ -554,10 +560,12 @@ void MainWindow::on_actionAboutSubsurface_triggered()
void MainWindow::on_actionUserManual_triggered()
{
+#ifndef NO_USERMANUAL
if (!helpView) {
helpView = new UserManual();
}
helpView->show();
+#endif
}
QString MainWindow::filter()