From fcbe6bfc13d5aa8177c7199687cd5a0b26f6c439 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 29 Jul 2014 19:41:30 -0300 Subject: Do not show the heartrate info unconditionally. use the preferences instead. Fixes #664 Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'qt-ui') 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; -- cgit v1.2.3-70-g09d2