diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-02-04 21:24:08 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-05 06:30:33 -0800 |
commit | dc077e7bffa6a5236a5b6437ef64237e30980d9d (patch) | |
tree | 3ad891765fed0abfe44bf0f738b9d3158d551f7e | |
parent | 7b9400685d86eee904b07471353435f34fec3686 (diff) | |
download | subsurface-dc077e7bffa6a5236a5b6437ef64237e30980d9d.tar.gz |
Fix hiding the tissues when user set 'show ceiling' to false.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/profile/diveprofileitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp index 11d80e96b..e7cf7cf03 100644 --- a/qt-ui/profile/diveprofileitem.cpp +++ b/qt-ui/profile/diveprofileitem.cpp @@ -432,7 +432,7 @@ void DiveCalculatedTissue::preferencesChanged() { QSettings s; s.beginGroup("TecDetails"); - setVisible(s.value("calcalltissues").toBool()); + setVisible(s.value("calcalltissues").toBool() && s.value("calcceiling").toBool()); } void DiveReportedCeiling::modelDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) |