diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-09-24 12:38:24 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-09-24 12:38:24 -0700 |
commit | 0296a456b299d41887b300d4c59b695be54b1dfa (patch) | |
tree | a18cb635eff567b8be29ae5a08c54834f164b79a /profile-widget/diveprofileitem.cpp | |
parent | 0e408cbadd8efda6c8dba2ec75c9b633748e196b (diff) | |
download | subsurface-0296a456b299d41887b300d4c59b695be54b1dfa.tar.gz |
Hook up the code to toggle DC reported ceiling visibility
This got broken a long time ago it seems and no one ever noticed.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget/diveprofileitem.cpp')
-rw-r--r-- | profile-widget/diveprofileitem.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp index 0856111cf..14a06beb5 100644 --- a/profile-widget/diveprofileitem.cpp +++ b/profile-widget/diveprofileitem.cpp @@ -897,6 +897,13 @@ void DiveCalculatedTissue::settingsChanged() DiveCalculatedCeiling::setVisible(prefs.calcalltissues && prefs.calcceiling); } +DiveReportedCeiling::DiveReportedCeiling() +{ + connect(SettingsObjectWrapper::instance()->techDetails, &TechnicalDetailsSettings::dcceilingChanged, this, &DiveReportedCeiling::setVisible); + setVisible(prefs.dcceiling); + settingsChanged(); +} + void DiveReportedCeiling::modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight) { if (!shouldCalculateStuff(topLeft, bottomRight)) |