From c907efb22ee6fc22ae1385b5b6896c86bde9c099 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 24 Sep 2016 12:50:19 -0700 Subject: [PATCH] Correctly hook up visibility toggle for tissue heat map Signed-off-by: Dirk Hohndel --- profile-widget/diveprofileitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()