summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-10-31 21:02:16 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-02 12:52:15 -0800
commitff57881265a305fe06691b065bc3f0efae88e6b3 (patch)
tree517a07b28aea6446ac904344aeb1b5cd54f4d72f /desktop-widgets/mainwindow.cpp
parent8a3fb854c2b835271cc03ea02e1046f2ec0fd5d5 (diff)
downloadsubsurface-ff57881265a305fe06691b065bc3f0efae88e6b3.tar.gz
Preferences: Remove the old dialog and use the new one
The new preferences dialog still needs a bit of fine tuning but should already work. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r--desktop-widgets/mainwindow.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index 23b4fb9b0..dc45d1d8d 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -15,7 +15,6 @@
#include "version.h"
#include "divelistview.h"
#include "downloadfromdivecomputer.h"
-#include "preferences.h"
#include "subsurfacewebservices.h"
#include "divecomputermanagementdialog.h"
#include "about.h"
@@ -278,8 +277,6 @@ MainWindow::MainWindow() : QMainWindow(),
ui.menubar->show();
set_git_update_cb(&updateProgress);
- PreferencesDialogV2 *d = new PreferencesDialogV2();
- d->show();
}
MainWindow::~MainWindow()
@@ -1785,6 +1782,7 @@ void MainWindow::editCurrentDive()
}
}
+// TODO: Remove the dependency to the PreferencesDialog here.
#define PREF_PROFILE(QT_PREFS) \
QSettings s; \
s.beginGroup("TecDetails"); \