summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-01 20:49:24 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-01 20:49:24 -0800
commit864c4ce94d58d6b1bad5fa77b75cb1a9311ab889 (patch)
treec8737b0f7379467c70fbf51b182ff3498396f5f8 /qt-ui/mainwindow.cpp
parent4ce3c1e8b89cd7b8178ee8f360f6a431d3d381e6 (diff)
downloadsubsurface-864c4ce94d58d6b1bad5fa77b75cb1a9311ab889.tar.gz
Automatic update check with an opt out
Store the last version used, the next time we can check, and the decision if the user does or does not want these checks in the settings. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index c578cb3d1..3ce038ba0 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -64,7 +64,6 @@ MainWindow::MainWindow() : QMainWindow(),
actionPreviousDive(0),
helpView(0),
state(VIEWALL),
- updateManager(0),
survey(0)
{
Q_ASSERT_X(m_Instance == NULL, "MainWindow", "MainWindow recreated!");
@@ -136,6 +135,7 @@ MainWindow::MainWindow() : QMainWindow(),
QLayoutItem *p = ui.gridLayout->takeAt(0);
ui.gridLayout->addWidget(toolBar, 0, 0);
ui.gridLayout->addItem(p, 0, 1);
+ updateManager = new UpdateManager(this);
}
MainWindow::~MainWindow()