diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-05 21:06:45 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-05 21:11:08 -0700 |
commit | e960a5b55803a576bf883dd4b15dc0fbca775a46 (patch) | |
tree | db1c8c71f20af2db1bba958da2d008242fe112ab /qt-gui.cpp | |
parent | 8e35868b9b09f6417809678bd22cc315a696b706 (diff) | |
download | subsurface-e960a5b55803a576bf883dd4b15dc0fbca775a46.tar.gz |
Add most settings to the QSettings code
This is missing the char * based settings (as I have no idea how to do
those) plus the map provider. Everything else should work.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r-- | qt-gui.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp index 2155f0029..a4801f760 100644 --- a/qt-gui.cpp +++ b/qt-gui.cpp @@ -75,14 +75,16 @@ void init_ui(int *argcp, char ***argvp) QTextCodec::setCodecForCStrings(QTextCodec::codecForMib(106)); #endif +#if 0 subsurface_open_conf(); load_preferences(); + /* these still need to be handled in QSettings */ default_dive_computer_vendor = subsurface_get_conf("dive_computer_vendor"); default_dive_computer_product = subsurface_get_conf("dive_computer_product"); default_dive_computer_device = subsurface_get_conf("dive_computer_device"); - +#endif return; } @@ -94,7 +96,9 @@ void run_ui(void) void exit_ui(void) { delete application; +#if 0 subsurface_close_conf(); +#endif if (existing_filename) free((void *)existing_filename); if (default_dive_computer_device) |