summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-03-20 12:38:43 -0700
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-03-20 21:18:06 +0100
commitc94e77d3dc282e2599ee12175343f87a1eb3f92d (patch)
treeb78a418605bff9d6e8acc03ef8f951b0aafe1bd0
parentc69ca4df80c9c74aa842b7f1fb3c44b22ae3232e (diff)
downloadsubsurface-c94e77d3dc282e2599ee12175343f87a1eb3f92d.tar.gz
Profile: ensure the correct settingsChanged() function is called
Found via LGTM. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--profile-widget/diveprofileitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp
index 4fd817093..c31944f87 100644
--- a/profile-widget/diveprofileitem.cpp
+++ b/profile-widget/diveprofileitem.cpp
@@ -823,7 +823,7 @@ DiveCalculatedCeiling::DiveCalculatedCeiling(ProfileWidget2 *widget) :
{
connect(qPrefTechnicalDetails::instance(), &qPrefTechnicalDetails::calcceilingChanged, this, &DiveCalculatedCeiling::setVisible);
setVisible(prefs.calcceiling);
- settingsChanged();
+ DiveCalculatedCeiling::settingsChanged();
}
void DiveCalculatedCeiling::modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)