summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-07-29 19:41:30 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-29 15:44:37 -0700
commitfcbe6bfc13d5aa8177c7199687cd5a0b26f6c439 (patch)
tree15db6db324ff7b7d863716667e4935bb29eb66b7 /qt-ui/profile
parent3c941c2fb2b996fd8ce31fba62014ad14bb54d59 (diff)
downloadsubsurface-fcbe6bfc13d5aa8177c7199687cd5a0b26f6c439.tar.gz
Do not show the heartrate info unconditionally.
use the preferences instead. Fixes #664 Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r--qt-ui/profile/profilewidget2.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index c1bdccd79..cc1b7eca3 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -454,10 +454,8 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
heartBeatAxis->setMinimum(pInfo.minhr);
heartBeatAxis->setMaximum(pInfo.maxhr);
heartBeatAxis->updateTicks(HR_AXIS); // this shows the ticks
- heartBeatAxis->setVisible(true);
- } else {
- heartBeatAxis->setVisible(false);
}
+ heartBeatAxis->setVisible(prefs.hrgraph && pInfo.maxhr);
timeAxis->setMaximum(maxtime);
int i, incr;