summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-09-24 12:50:19 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-09-24 12:50:19 -0700
commitc907efb22ee6fc22ae1385b5b6896c86bde9c099 (patch)
tree46a7518c0097956698a1bc59b66b80220effe992 /profile-widget
parent0296a456b299d41887b300d4c59b695be54b1dfa (diff)
downloadsubsurface-c907efb22ee6fc22ae1385b5b6896c86bde9c099.tar.gz
Correctly hook up visibility toggle for tissue heat map
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/diveprofileitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp
index 14a06beb5..b44586f7f 100644
--- a/profile-widget/diveprofileitem.cpp
+++ b/profile-widget/diveprofileitem.cpp
@@ -359,6 +359,7 @@ void DiveHeartrateItem::paint(QPainter *painter, const QStyleOptionGraphicsItem
DivePercentageItem::DivePercentageItem(int i)
{
+ connect(SettingsObjectWrapper::instance()->techDetails, &TechnicalDetailsSettings::percentageGraphChanged, this, &DivePercentageItem::setVisible);
tissueIndex = i;
settingsChanged();
}
@@ -426,7 +427,6 @@ void DivePercentageItem::paint(QPainter *painter, const QStyleOptionGraphicsItem
}
}
painter->restore();
- connect(SettingsObjectWrapper::instance()->techDetails, &TechnicalDetailsSettings::percentageGraphChanged, this, &DivePercentageItem::setVisible);
}
DiveAmbPressureItem::DiveAmbPressureItem()