summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-23 23:17:19 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-24 10:40:12 -0700
commit9386eb2a0b8bd2540fef524c62b988858c64c445 (patch)
tree2214e24fef9bacbeeda8b5d373a4c255612b7e63 /profile-widget
parent3d4698c0a19c452bc322d4be529c7036c61c8c4d (diff)
downloadsubsurface-9386eb2a0b8bd2540fef524c62b988858c64c445.tar.gz
cleanup: move get_dc_nickname from qthelper.cpp to divecomputer.cpp
1) qthelper is already huge. 2) set_dc_nickname et al. is already there. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/profilewidget2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 3a8ab4d54..7353cb14e 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
#include "profile-widget/profilewidget2.h"
#include "qt-models/diveplotdatamodel.h"
+#include "core/divecomputer.h"
#include "core/subsurface-string.h"
#include "core/qthelper.h"
#include "core/picture.h"
@@ -806,7 +807,7 @@ void ProfileWidget2::plotDive(const struct dive *d, bool force, bool doClearPict
Q_FOREACH (DiveEventItem *event, eventItems) {
event->setVisible(!event->shouldBeHidden());
}
- QString dcText = get_dc_nickname(currentdc->model, currentdc->deviceid);
+ QString dcText = get_dc_nickname(currentdc);
if (dcText == "planned dive")
dcText = tr("Planned dive");
else if (dcText == "manually added dive")