From 022b3e450b278911c2dc9fb1ff211e1ad1230dc8 Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Fri, 20 Oct 2017 08:51:20 +0200 Subject: Translate dc text in profile also if string has suffix for > 1 DC Signed-off-by: Stefan Fuchs --- profile-widget/profilewidget2.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'profile-widget') diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 1d25c8261..a7ac87d77 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -769,17 +769,17 @@ void ProfileWidget2::plotDive(struct dive *d, bool force) event->setVisible(!event->shouldBeHidden()); } QString dcText = get_dc_nickname(currentdc->model, currentdc->deviceid); -#ifndef SUBSURFACE_MOBILE - int nr; - if ((nr = number_of_computers(&displayed_dive)) > 1) - dcText += tr(" (#%1 of %2)").arg(dc_number + 1).arg(nr); -#endif if (dcText == "planned dive") dcText = tr("Planned dive"); else if (dcText == "manually added dive") dcText = tr("Manually added dive"); else if (dcText.isEmpty()) dcText = tr("Unknown dive computer"); +#ifndef SUBSURFACE_MOBILE + int nr; + if ((nr = number_of_computers(&displayed_dive)) > 1) + dcText += tr(" (#%1 of %2)").arg(dc_number + 1).arg(nr); +#endif diveComputerText->setText(dcText); if (haveFilesOnCommandLine() && animSpeedBackup != 0) { prefs.animation_speed = animSpeedBackup; -- cgit v1.2.3-70-g09d2