diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-02-06 14:51:20 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-06 11:31:44 -0800 |
commit | 185b7a454a484878a32728adf221a983cc943d48 (patch) | |
tree | 69a2115a5f31447d815bdb0569fdd7233565aaca /qt-ui/mainwindow.cpp | |
parent | 96e35e542cce1e988f542d46789a3ab66d9cb1e7 (diff) | |
download | subsurface-185b7a454a484878a32728adf221a983cc943d48.tar.gz |
Save the old pref system when changing the new one
Since we have now a mix of old / new prefs, remember
to change both when we alter something.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index c9528f90f..a44247a34 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -826,42 +826,52 @@ void MainWindow::editCurrentDive() void MainWindow::on_profCalcAllTissues_clicked(bool triggered) { + prefs.calc_all_tissues = triggered; TOOLBOX_PREF_PROFILE(calcalltissues); } void MainWindow::on_profCalcCeiling_clicked(bool triggered) { + prefs.profile_calc_ceiling = triggered; TOOLBOX_PREF_PROFILE(calcceiling); } void MainWindow::on_profDcCeiling_clicked(bool triggered) { + prefs.profile_dc_ceiling = triggered; TOOLBOX_PREF_PROFILE(dcceiling); } void MainWindow::on_profEad_clicked(bool triggered) { + prefs.ead = triggered; TOOLBOX_PREF_PROFILE(ead); } void MainWindow::on_profIncrement3m_clicked(bool triggered) { + prefs.calc_ceiling_3m_incr = triggered; TOOLBOX_PREF_PROFILE(calcceiling3m); } void MainWindow::on_profMod_clicked(bool triggered) { + prefs.mod = triggered; TOOLBOX_PREF_PROFILE(mod); } void MainWindow::on_profNtl_tts_clicked(bool triggered) { + prefs.calc_ndl_tts = triggered; TOOLBOX_PREF_PROFILE(calcndltts); } void MainWindow::on_profPhe_clicked(bool triggered) { + prefs.pp_graphs.phe = triggered; TOOLBOX_PREF_PROFILE(phegraph); } void MainWindow::on_profPn2_clicked(bool triggered) { + prefs.pp_graphs.pn2 = triggered; TOOLBOX_PREF_PROFILE(pn2graph); } void MainWindow::on_profPO2_clicked(bool triggered) { + prefs.pp_graphs.po2 = triggered; TOOLBOX_PREF_PROFILE(po2graph); } void MainWindow::on_profRuler_clicked(bool triggered) @@ -870,10 +880,8 @@ void MainWindow::on_profRuler_clicked(bool triggered) } void MainWindow::on_profSAC_clicked(bool triggered) { + prefs.show_sac = triggered; TOOLBOX_PREF_PROFILE(show_sac); } -void MainWindow::on_profUnusedTanks_clicked(bool triggered) -{ - TOOLBOX_PREF_PROFILE(display_unused_tanks); -} + #undef TOOLBOX_PREF_PROFILE
\ No newline at end of file |