diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-05 15:53:46 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-05 15:53:46 -0700 |
commit | 7b0f737f600ff8e30ccb46963f964756a7b87b57 (patch) | |
tree | d83e85b3346bf8f97b50e27842bfbd4890f595d1 | |
parent | 6545855b6513ff39c6d0d7428a5e27508a821f0d (diff) | |
download | subsurface-7b0f737f600ff8e30ccb46963f964756a7b87b57.tar.gz |
Make rulergraph a pref as well
I don't see a point in treating it differently from the other graphs.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | pref.h | 1 | ||||
-rw-r--r-- | qt-ui/mainwindow.cpp | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -43,6 +43,7 @@ struct preferences { short show_average_depth; short zoomed_plot; short hrgraph; + short rulergraph; short save_userid_local; char *userid; }; diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 5e8459ecd..861b6868c 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -722,7 +722,7 @@ void MainWindow::readSettings() TOOLBOX_PREF_BUTTON(pp_graphs.pn2, pn2graph, profPn2); TOOLBOX_PREF_BUTTON(pp_graphs.po2, po2graph, profPO2); TOOLBOX_PREF_BUTTON(hrgraph, hrgraph, profHR); - ui.profRuler->setChecked(s.value("rulergraph").toBool()); + TOOLBOX_PREF_BUTTON(rulergraph, rulergraph, profRuler); TOOLBOX_PREF_BUTTON(show_sac, show_sac, profSAC); } @@ -1191,6 +1191,7 @@ void MainWindow::on_profHR_clicked(bool triggered) } void MainWindow::on_profRuler_clicked(bool triggered) { + prefs.rulergraph = triggered; TOOLBOX_PREF_PROFILE(rulergraph); } void MainWindow::on_profSAC_clicked(bool triggered) |