From 419434f494e27979f4f904612d7f5be92451c54f Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 19 May 2014 14:29:43 +0900 Subject: Show the dive computer number (if a dive has more than one) For most users this is no change at all. For the few who download from multiple dive computers this now shows them which of them is the primary dive computer. Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index da0e37f2b..c1e4fcab3 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -467,7 +467,11 @@ void ProfileWidget2::plotDives(QList dives) event->setVisible(!event->shouldBeHidden()); // qDebug() << event->getEvent()->name << "@" << event->getEvent()->time.seconds << "is hidden:" << event->isHidden(); } - diveComputerText->setText(currentdc->model); + QString dcText = currentdc->model; + int nr; + if ((nr = number_of_computers(current_dive)) > 1) + dcText += tr(" (#%1 of %2)").arg(dc_number + 1).arg(nr); + diveComputerText->setText(dcText); if (MainWindow::instance()->filesFromCommandLine() && animSpeedBackup != -1) { prefs.animation = animSpeedBackup; } -- cgit v1.2.3-70-g09d2