From eec732548b9f5d8cf792c896fa3a66f1db1043f2 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 25 Nov 2013 11:05:09 -0800 Subject: Switch tab title to Trip Notes when handling a trip And switch back to Dive Notes when back to looking at a dive. This makes things more consistent... Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/maintab.cpp') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 363158ec8..f132d2fec 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -293,6 +293,7 @@ void MainTab::updateDiveInfo(int dive) updateGpsCoordinates(d); ui.dateTimeEdit->setDateTime(QDateTime::fromTime_t(d->when - gettimezoneoffset())); if (mainWindow() && mainWindow()->dive_list()->selectedTrips.count() == 1) { + setTabText(0, tr("Trip Notes")); // only use trip relevant fields ui.coordinates->setVisible(false); ui.CoordinatedLabel->setVisible(false); @@ -318,6 +319,7 @@ void MainTab::updateDiveInfo(int dive) ui.NotesLabel->setText(tr("Trip Notes")); ui.notes->setText(currentTrip->notes); } else { + setTabText(0, tr("Dive Notes")); // make all the fields visible writeable ui.coordinates->setVisible(true); ui.CoordinatedLabel->setVisible(true); -- cgit v1.2.3-70-g09d2