summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pref.h1
-rw-r--r--qt-ui/mainwindow.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/pref.h b/pref.h
index 6ee02a3cb..7eb3f566c 100644
--- a/pref.h
+++ b/pref.h
@@ -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)