summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/profile/diveprofileitem.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp
index 52cf3d91b..6490c9b7a 100644
--- a/qt-ui/profile/diveprofileitem.cpp
+++ b/qt-ui/profile/diveprofileitem.cpp
@@ -302,11 +302,8 @@ void DiveHeartrateItem::preferencesChanged()
{
QSettings s;
s.beginGroup("TecDetails");
- setVisible(s.value(visibilityKey).toBool());
- if (s.value(visibilityKey).toBool())
- visible = true;
- else
- visible = false;
+ visible = s.value(visibilityKey).toBool();
+ setVisible(visible);
}
void DiveHeartrateItem::setVisibilitySettingsKey(const QString &key)