diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2016-01-25 18:15:06 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-25 13:04:39 -0800 |
commit | 411f455291a547c782588ec8327ec5f8a34f243c (patch) | |
tree | 3622cbd2cc533bc4071144877f16de2b51277b3d /subsurface-core | |
parent | 74333963330cc5f9d8a848487522e34a822c46de (diff) | |
download | subsurface-411f455291a547c782588ec8327ec5f8a34f243c.tar.gz |
Fix bug on the visibility of the Ruler Graph
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core')
-rw-r--r-- | subsurface-core/qthelper.cpp | 1 | ||||
-rw-r--r-- | subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/subsurface-core/qthelper.cpp b/subsurface-core/qthelper.cpp index b8e168873..e5cb2cec9 100644 --- a/subsurface-core/qthelper.cpp +++ b/subsurface-core/qthelper.cpp @@ -1310,6 +1310,7 @@ void loadPreferences() GET_BOOL("calcalltissues", calcalltissues); GET_BOOL("hrgraph", hrgraph); GET_BOOL("tankbar", tankbar); + GET_BOOL("RulerBar", rulergraph); GET_BOOL("percentagegraph", percentagegraph); GET_INT("gflow", gflow); GET_INT("gfhigh", gfhigh); diff --git a/subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp b/subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp index 02ec8a0fc..22d9a09d8 100644 --- a/subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp +++ b/subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp @@ -363,7 +363,7 @@ void TechnicalDetailsSettings::setRulerGraph(bool value) QSettings s; s.beginGroup(tecDetails); s.setValue("RulerBar", value); - prefs.pp_graphs.phe_threshold = value; + prefs.rulergraph = value; emit rulerGraphChanged(value); } |