aboutsummaryrefslogtreecommitdiffstats
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 b63225295..ead32835c 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -37,6 +37,7 @@
#include "diveplanner.h"
#include "about.h"
#include "worldmap-save.h"
+#include "updatemanager.h"
#ifndef NO_PRINTING
#include "printdialog.h"
#endif
@@ -84,6 +85,8 @@ MainWindow::MainWindow() : QMainWindow(),
ui.divePlanner->settingsChanged();
ui.divePlannerWidget->settingsChanged();
+ updateManager = new UpdateManager(this);
+
#ifndef ENABLE_PLANNER
// ui.menuLog->removeAction(ui.actionDivePlanner);
#endif
@@ -575,6 +578,11 @@ void MainWindow::on_actionAboutSubsurface_triggered()
dlg.exec();
}
+void MainWindow::on_action_Check_for_Updates_triggered()
+{
+ updateManager->checkForUpdates();
+}
+
void MainWindow::on_actionUserManual_triggered()
{
#ifndef NO_USERMANUAL