From dc077e7bffa6a5236a5b6437ef64237e30980d9d Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 4 Feb 2014 21:24:08 -0200 Subject: Fix hiding the tissues when user set 'show ceiling' to false. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/diveprofileitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3-70-g09d2