Correctly hook up visibility toggle for tissue heat map

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-09-24 12:50:19 -07:00
parent 0296a456b2
commit c907efb22e

View file

@ -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()